Browse Source

MAPREDUCE-3857. Grep example ignores mapred.job.queue.name. Contributed by Jonathan Eagles.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0@1334877 13f79535-47bb-0310-9956-ffa450edef68
Matthew Foley 13 years ago
parent
commit
6acb8e4246
2 changed files with 4 additions and 1 deletions
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/examples/org/apache/hadoop/examples/Grep.java

+ 3 - 0
CHANGES.txt

@@ -77,6 +77,9 @@ Release 1.0.3 - unreleased
     HDFS-3374. hdfs' TestDelegationToken fails intermittently with a race
     condition. (Owen O'Malley via mattf)
 
+    MAPREDUCE-3857. Grep example ignores mapred.job.queue.name.
+    (Jonathan Eagles via mattf)
+
 Release 1.0.2 - 2012.03.24
 
   NEW FEATURES

+ 1 - 1
src/examples/org/apache/hadoop/examples/Grep.java

@@ -68,7 +68,7 @@ public class Grep extends Configured implements Tool {
 
       JobClient.runJob(grepJob);
 
-      JobConf sortJob = new JobConf(Grep.class);
+      JobConf sortJob = new JobConf(getConf(), Grep.class);
       sortJob.setJobName("grep-sort");
 
       FileInputFormat.setInputPaths(sortJob, tempDir);