Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
MAPREDUCE-924. Fixes the TestPipes testcase to use Tool. Contributed …
Browse files Browse the repository at this point in the history
…by Amareshwari Sriramadasu.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20@810136 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Devaraj Das committed Sep 1, 2009
1 parent 86e6de1 commit 1678f5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.txt
Expand Up @@ -253,6 +253,9 @@ Release 0.20.1 - 2009-08-27
MAPREDUCE-687. Fix an assertion in TestMiniMRMapRedDebugScript.
(Amareshwari Sriramadasu via sharad)

MAPREDUCE-924. Fixes the TestPipes testcase to use Tool.
(Amareshwari Sriramadasu via sharad)

Release 0.20.0 - 2009-04-15

INCOMPATIBLE CHANGES
Expand Down
5 changes: 4 additions & 1 deletion src/test/org/apache/hadoop/mapred/pipes/TestPipes.java
Expand Up @@ -40,6 +40,7 @@
import org.apache.hadoop.mapred.TestMiniMRWithDFS;
import org.apache.hadoop.mapred.Counters.Counter;
import org.apache.hadoop.util.StringUtils;
import org.apache.hadoop.util.ToolRunner;

import junit.framework.TestCase;

Expand Down Expand Up @@ -238,12 +239,14 @@ private void runNonPipedProgram(MiniMRCluster mr, MiniDFSCluster dfs,
" -program " +
dfs.getFileSystem().makeQualified(wordExec));
try {
Submitter.main(new String[]{"-conf", jobXml.toString(),
int ret = ToolRunner.run(new Submitter(),
new String[]{"-conf", jobXml.toString(),
"-input", inDir.toString(),
"-output", outDir.toString(),
"-program",
dfs.getFileSystem().makeQualified(wordExec).toString(),
"-reduces", "2"});
assertEquals(0, ret);
} catch (Exception e) {
assertTrue("got exception: " + StringUtils.stringifyException(e), false);
}
Expand Down

0 comments on commit 1678f5f

Please sign in to comment.