YARN-8535. Fix DistributedShell unit tests. Contributed by Abhishek Modi.

This commit is contained in:
bibinchundatt 2018-09-02 13:35:52 +05:30
parent 6edf3d2ea3
commit eed8415dc1
3 changed files with 5 additions and 2 deletions

View File

@ -944,7 +944,7 @@ public class ApplicationMaster {
// When the application completes, it should send a finish application
// signal to the RM
LOG.info("Application completed. Signalling finish to RM");
LOG.info("Application completed. Signalling finished to RM");
FinalApplicationStatus appStatus;
boolean success = true;

View File

@ -624,6 +624,7 @@ public class TestDistributedShell {
String entityfileName) {
String outputDirPathForEntity =
basePath + File.separator + entityType + File.separator;
LOG.info(outputDirPathForEntity);
File outputDirForEntity = new File(outputDirPathForEntity);
Assert.assertTrue(outputDirForEntity.isDirectory());

View File

@ -577,7 +577,9 @@ public class MiniYARNCluster extends CompositeService {
config.set(YarnConfiguration.NM_LOCALIZER_ADDRESS,
MiniYARNCluster.getHostname() + ":0");
config.set(YarnConfiguration.NM_COLLECTOR_SERVICE_ADDRESS,
MiniYARNCluster.getHostname() + ":0");
MiniYARNCluster.getHostname() + ":" +
ServerSocketUtil.getPort(
YarnConfiguration.DEFAULT_NM_COLLECTOR_SERVICE_PORT, 10));
WebAppUtils
.setNMWebAppHostNameAndPort(config,
MiniYARNCluster.getHostname(), 0);