Repository: hadoop Updated Branches: refs/heads/branch-2.8 9c7ce389c -> 5522a46f4
HADOOP-13320. Fix arguments check in documentation for WordCount v2.0. Contributed by niccolo becchi. (cherry picked from commit 9d46a49c746b9e1ef552dbb10d1e22f87db68c76) (cherry picked from commit b3b81b4f0e1cd0b37ab2dfdf3e7301e0ef3e0676) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/5522a46f Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/5522a46f Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/5522a46f Branch: refs/heads/branch-2.8 Commit: 5522a46f4c8e3ec9a5155140b185fb81a2a0c1c3 Parents: 9c7ce38 Author: Akira Ajisaka <[email protected]> Authored: Thu Jul 7 15:29:26 2016 -0700 Committer: Akira Ajisaka <[email protected]> Committed: Thu Jul 7 15:32:20 2016 -0700 ---------------------------------------------------------------------- .../src/site/markdown/MapReduceTutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/5522a46f/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapReduceTutorial.md ---------------------------------------------------------------------- diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapReduceTutorial.md b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapReduceTutorial.md index 8271e7e..8599676 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapReduceTutorial.md +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapReduceTutorial.md @@ -1040,7 +1040,7 @@ public class WordCount2 { Configuration conf = new Configuration(); GenericOptionsParser optionParser = new GenericOptionsParser(conf, args); String[] remainingArgs = optionParser.getRemainingArgs(); - if (!(remainingArgs.length != 2 | | remainingArgs.length != 4)) { + if ((remainingArgs.length != 2) && (remainingArgs.length != 4)) { System.err.println("Usage: wordcount <in> <out> [-skip skipPatternFile]"); System.exit(2); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
