NodeId nodeId = NodeId.newInstance("127.0.0.1", 0);
Resource resource = Resource.newInstance(2048, 4);
RegisterNodeManagerRequest request = RegisterNodeManagerRequest
.newInstance(nodeId, 0, resource, YarnVersionInfo.getVersion(), null);
resourceTracker.registerNodeManager(request);
<BUG>if (conf.getBoolean(YarnConfiguration.HOPS_DISTRIBUTED_RT_ENABLED,

YarnConfiguration.DEFAULT_HOPS_DISTRIBUTED_RT_ENABLED)) {
</BUG>
Thread.sleep(5000);

NodeId nodeId = NodeId.newInstance("127.0.0.1", 0);
Resource resource = Resource.newInstance(2048, 4);
RegisterNodeManagerRequest request = RegisterNodeManagerRequest
.newInstance(nodeId, 0, resource, YarnVersionInfo.getVersion(), null);
resourceTracker.registerNodeManager(request);
if (conf.getBoolean(YarnConfiguration.DISTRIBUTED_RM,
YarnConfiguration.DEFAULT_DISTRIBUTED_RM)) {
Thread.sleep(5000);
