MAPREDUCE-6231. Grep example job is not working on a fully-distributed cluster. (aajisaka)

(cherry picked from commit fe2188a042)
This commit is contained in:
Akira Ajisaka 2015-01-30 01:10:02 +09:00
parent 71c60af84e
commit 57172c09e2
2 changed files with 5 additions and 0 deletions

View File

@ -85,6 +85,9 @@ Release 2.7.0 - UNRELEASED
MAPREDUCE-6230. Fixed RMContainerAllocator to update the new AMRMToken
service name properly. (Jason Lowe via jianhe)
MAPREDUCE-6231. Grep example job is not working on a fully-distributed
cluster. (aajisaka)
Release 2.6.0 - 2014-11-18
INCOMPATIBLE CHANGES

View File

@ -61,6 +61,7 @@ public int run(String[] args) throws Exception {
try {
grepJob.setJobName("grep-search");
grepJob.setJarByClass(Grep.class);
FileInputFormat.setInputPaths(grepJob, args[0]);
@ -78,6 +79,7 @@ public int run(String[] args) throws Exception {
Job sortJob = new Job(conf);
sortJob.setJobName("grep-sort");
sortJob.setJarByClass(Grep.class);
FileInputFormat.setInputPaths(sortJob, tempDir);
sortJob.setInputFormatClass(SequenceFileInputFormat.class);