From 9759542abb8d4c099860dbf2041956b921d8fbaa Mon Sep 17 00:00:00 2001 From: ByronHsu Date: Wed, 3 Feb 2021 01:20:53 +0800 Subject: [PATCH] HDDS-4098. Improve om admin getserviceroles error message. (#1881) --- .../apache/hadoop/ozone/admin/om/OMAdmin.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/admin/om/OMAdmin.java b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/admin/om/OMAdmin.java index f9321ab5cf2..3bdb4476baf 100644 --- a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/admin/om/OMAdmin.java +++ b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/admin/om/OMAdmin.java @@ -78,10 +78,10 @@ public ClientProtocol createClient(String omServiceId) throws Exception { .getClientProxy(); } else { throw new OzoneClientException("This command works only on OzoneManager" + - " HA cluster. Service ID specified does not match" + - " with " + OZONE_OM_SERVICE_IDS_KEY + " defined in the " + - "configuration. Configured " + OZONE_OM_SERVICE_IDS_KEY + " are" + - conf.getTrimmedStringCollection(OZONE_OM_SERVICE_IDS_KEY)); + " HA cluster. Service ID specified does not match" + + " with " + OZONE_OM_SERVICE_IDS_KEY + " defined in the " + + "configuration. Configured " + OZONE_OM_SERVICE_IDS_KEY + " are " + + conf.getTrimmedStringCollection(OZONE_OM_SERVICE_IDS_KEY) + "\n"); } } @@ -99,10 +99,10 @@ public OzoneManagerProtocolClientSideTranslatorPB createOmClient( clientId); } else { throw new OzoneClientException("This command works only on OzoneManager" + - " HA cluster. Service ID specified does not match" + - " with " + OZONE_OM_SERVICE_IDS_KEY + " defined in the " + - "configuration. Configured " + OZONE_OM_SERVICE_IDS_KEY + " are" + - conf.getTrimmedStringCollection(OZONE_OM_SERVICE_IDS_KEY)); + " HA cluster. Service ID specified does not match" + + " with " + OZONE_OM_SERVICE_IDS_KEY + " defined in the " + + "configuration. Configured " + OZONE_OM_SERVICE_IDS_KEY + " are " + + conf.getTrimmedStringCollection(OZONE_OM_SERVICE_IDS_KEY) + "\n"); } }