Skip to content

Commit 7a6466a

Browse files
committed
MAPREDUCE-5349. Merging change r from branch-2 to branch-2.1-beta.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.1-beta@1498145 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9c6a529 commit 7a6466a

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

hadoop-mapreduce-project/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,9 @@ Release 2.1.0-beta - 2013-07-02
433433
MAPREDUCE-5177. Use common utils FileUtil#setReadable/Writable/Executable &
434434
FileUtil#canRead/Write/Execute. (Ivan Mitic via suresh)
435435

436+
MAPREDUCE-5349. TestClusterMapReduceTestCase and TestJobName fail on Windows
437+
in branch-2. (Chuan Liu via cnauroth)
438+
436439
MAPREDUCE-5291. Change MR App to use updated property names in
437440
container-log4j.properties. (Zhijie Shen via sseth)
438441

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/MiniMRClientClusterFactory.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@ public class MiniMRClientClusterFactory {
3838

3939
public static MiniMRClientCluster create(Class<?> caller, int noOfNMs,
4040
Configuration conf) throws IOException {
41-
return create(caller, caller.getName(), noOfNMs, conf);
41+
return create(caller, caller.getSimpleName(), noOfNMs, conf);
4242
}
43-
43+
4444
public static MiniMRClientCluster create(Class<?> caller, String identifier,
45-
int noOfNMs,
46-
Configuration conf) throws IOException {
45+
int noOfNMs, Configuration conf) throws IOException {
4746

4847
if (conf == null) {
4948
conf = new Configuration();
@@ -71,8 +70,8 @@ public static MiniMRClientCluster create(Class<?> caller, String identifier,
7170
fs.setPermission(remoteCallerJar, new FsPermission("744"));
7271
job.addFileToClassPath(remoteCallerJar);
7372

74-
MiniMRYarnCluster miniMRYarnCluster =
75-
new MiniMRYarnCluster(identifier, noOfNMs);
73+
MiniMRYarnCluster miniMRYarnCluster = new MiniMRYarnCluster(identifier,
74+
noOfNMs);
7675
job.getConfiguration().set("minimrclientcluster.caller.name",
7776
identifier);
7877
job.getConfiguration().setInt("minimrclientcluster.nodemanagers.number",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public MiniMRCluster(int jobTrackerPort, int taskTrackerPort,
178178
int numTrackerToExclude, Clock clock) throws IOException {
179179
if (conf == null) conf = new JobConf();
180180
FileSystem.setDefaultUri(conf, namenode);
181-
String identifier = this.getClass().getName() + "_"
181+
String identifier = this.getClass().getSimpleName() + "_"
182182
+ Integer.toString(new Random().nextInt(Integer.MAX_VALUE));
183183
mrClientCluster = MiniMRClientClusterFactory.create(this.getClass(),
184184
identifier, numTaskTrackers, conf);

0 commit comments

Comments
 (0)