hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1147981 - in /hadoop/common/trunk/mapreduce: CHANGES.txt src/test/mapred/org/apache/hadoop/mapred/ClusterMapReduceTestCase.java
Date Mon, 18 Jul 2011 17:27:38 GMT
Author: eli
Date: Mon Jul 18 17:27:37 2011
New Revision: 1147981

URL: http://svn.apache.org/viewvc?rev=1147981&view=rev
Log:
MAPREDUCE-2623. Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder. Contributed
by Harsh J Chouraria

Modified:
    hadoop/common/trunk/mapreduce/CHANGES.txt
    hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/mapred/ClusterMapReduceTestCase.java

Modified: hadoop/common/trunk/mapreduce/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/mapreduce/CHANGES.txt?rev=1147981&r1=1147980&r2=1147981&view=diff
==============================================================================
--- hadoop/common/trunk/mapreduce/CHANGES.txt (original)
+++ hadoop/common/trunk/mapreduce/CHANGES.txt Mon Jul 18 17:27:37 2011
@@ -200,6 +200,9 @@ Trunk (unreleased changes)
     MAPREDUCE-2249. Check the reflexive property of Counters objects when
     comparing equality. (Devaraj K via todd)
 
+    MAPREDUCE-2623. Update ClusterMapReduceTestCase to use
+    MiniDFSCluster.Builder (Harsh J Chouraria via eli)
+
   OPTIMIZATIONS
 
     MAPREDUCE-2026. Make JobTracker.getJobCounters() and

Modified: hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/mapred/ClusterMapReduceTestCase.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/mapred/ClusterMapReduceTestCase.java?rev=1147981&r1=1147980&r2=1147981&view=diff
==============================================================================
--- hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/mapred/ClusterMapReduceTestCase.java
(original)
+++ hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/mapred/ClusterMapReduceTestCase.java
Mon Jul 18 17:27:37 2011
@@ -78,7 +78,8 @@ public abstract class ClusterMapReduceTe
           conf.set((String) entry.getKey(), (String) entry.getValue());
         }
       }
-      dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null);
+      dfsCluster = new MiniDFSCluster.Builder(conf).numDataNodes(2)
+      .format(reformatDFS).racks(null).build();
 
       ConfigurableMiniMRCluster.setConfiguration(props);
       //noinspection deprecation



Mime
View raw message