diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java index 348d0c0390..b5bd361507 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java @@ -258,7 +258,6 @@ public static void main(String[] argv) throws IOException { hParser.printGenericCommandUsage(System.err); System.exit(1); } - StringUtils.startupShutdownMessage(OzoneManager.class, argv, LOG); OzoneManager om = createOm(hParser.getRemainingArgs(), conf); if (om != null) { om.start(); @@ -298,6 +297,7 @@ public static OzoneManager createOm(String[] argv, } switch (startOpt) { case CREATEOBJECTSTORE: + StringUtils.startupShutdownMessage(OzoneManager.class, argv, LOG); terminate(omInit(conf) ? 0 : 1); return null; case HELP: @@ -305,6 +305,7 @@ public static OzoneManager createOm(String[] argv, terminate(0); return null; default: + StringUtils.startupShutdownMessage(OzoneManager.class, argv, LOG); return new OzoneManager(conf); } }