|
@@ -437,18 +437,15 @@ public class NodeManager extends CompositeService
|
|
|
addService(nodeStatusUpdater);
|
|
|
((NMContext) context).setNodeStatusUpdater(nodeStatusUpdater);
|
|
|
|
|
|
- super.serviceInit(conf);
|
|
|
- // TODO add local dirs to del
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- protected void serviceStart() throws Exception {
|
|
|
+ // Do secure login before calling init for added services.
|
|
|
try {
|
|
|
doSecureLogin();
|
|
|
} catch (IOException e) {
|
|
|
throw new YarnRuntimeException("Failed NodeManager login", e);
|
|
|
}
|
|
|
- super.serviceStart();
|
|
|
+
|
|
|
+ super.serviceInit(conf);
|
|
|
+ // TODO add local dirs to del
|
|
|
}
|
|
|
|
|
|
@Override
|