YARN-8535. Fix DistributedShell unit tests. Contributed by Abhishek Modi.
This commit is contained in:
parent
6edf3d2ea3
commit
eed8415dc1
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue