sunchao commented on a change in pull request #2411:
URL: https://github.com/apache/hadoop/pull/2411#discussion_r520092586
##########
File path:
hadoop-client-modules/hadoop-client-integration-tests/src/test/java/org/apache/hadoop/example/ITUseMiniCluster.java
##########
@@ -73,13 +78,22 @@ public void clusterUp() throws IOException {
.numDataNodes(3)
.build();
cluster.waitActive();
+
+ conf.set("yarn.scheduler.capacity.root.queues", "default");
+ conf.setInt("yarn.scheduler.capacity.root.default.capacity", 100);
+ yarnCluster = new MiniYARNCluster(getClass().getName(), 1, 1, 1, 1);
+ yarnCluster.init(conf);
+ yarnCluster.start();
}
@After
public void clusterDown() {
if (cluster != null) {
cluster.close();
}
+ if (yarnCluster != null) {
Review comment:
Nice. Didn't know this util method, but seems we can only use it with
`yarnCluster`.
----------------------------------------------------------------
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]