iwasakims commented on a change in pull request #2065:
URL: https://github.com/apache/hadoop/pull/2065#discussion_r442550539
##########
File path:
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestMiniMRBringup.java
##########
@@ -36,5 +40,21 @@ public void testBringUp() throws IOException {
if (mr != null) { mr.shutdown(); }
}
}
-
+
+ @Test
+ public void testMiniMRYarnClusterWithoutJHS() throws IOException {
+ MiniMRYarnCluster mr = null;
+ try {
+ final Configuration conf = new Configuration();
+ conf.setBoolean(MiniMRYarnCluster.MR_HISTORY_MINICLUSTER_ENABLED, false);
+ mr = new MiniMRYarnCluster("testMiniMRYarnClusterWithoutJHS");
+ mr.init(conf);
+ Assert.assertEquals(null, mr.getHistoryServer());
Review comment:
Sure. It makes more stable for future change. I updated the code.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]