File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public HddsDatanodeService(Configuration conf) {
105105 @ VisibleForTesting
106106 public static HddsDatanodeService createHddsDatanodeService (
107107 String [] args , Configuration conf ) {
108- return createHddsDatanodeService (args , conf , true );
108+ return createHddsDatanodeService (args , conf , false );
109109 }
110110
111111 /**
@@ -124,11 +124,9 @@ private static HddsDatanodeService createHddsDatanodeService(
124124 if (args .length == 0 && printBanner ) {
125125 StringUtils
126126 .startupShutdownMessage (HddsDatanodeService .class , args , LOG );
127- return new HddsDatanodeService (conf );
128- } else {
129- new HddsDatanodeService ().run (args );
130- return null ;
127+
131128 }
129+ return new HddsDatanodeService (conf );
132130 }
133131
134132 public static void main (String [] args ) {
You can’t perform that action at this time.
0 commit comments