ソースを参照

MAPREDUCE-7301: Expose Mini MR Cluster attribute for testing

Signed-off-by: Mingliang Liu <liuml07@apache.org>
Swaroopa Kadam 4 年 前
コミット
2e46ef9417

+ 4 - 0
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/MiniMRCluster.java

@@ -271,4 +271,8 @@ public class MiniMRCluster {
     }
   }
 
+  public MiniMRClientCluster getMrClientCluster() {
+    return mrClientCluster;
+  }
+
 }

+ 4 - 0
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/MiniMRYarnClusterAdapter.java

@@ -74,4 +74,8 @@ public class MiniMRYarnClusterAdapter implements MiniMRClientCluster {
     miniMRYarnCluster.start();
   }
 
+  public MiniMRYarnCluster getMiniMRYarnCluster() {
+    return miniMRYarnCluster;
+  }
+
 }