hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aajis...@apache.org
Subject hadoop git commit: HADOOP-13320. Fix arguments check in documentation for WordCount v2.0. Contributed by niccolo becchi.
Date Thu, 07 Jul 2016 22:31:07 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 6e597600f -> 9d46a49c7


HADOOP-13320. Fix arguments check in documentation for WordCount v2.0. Contributed by niccolo
becchi.

This closes #108


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/9d46a49c
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/9d46a49c
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/9d46a49c

Branch: refs/heads/trunk
Commit: 9d46a49c746b9e1ef552dbb10d1e22f87db68c76
Parents: 6e59760
Author: Akira Ajisaka <aajisaka@apache.org>
Authored: Thu Jul 7 15:29:26 2016 -0700
Committer: Akira Ajisaka <aajisaka@apache.org>
Committed: Thu Jul 7 15:30:39 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/9d46a49c/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 1d5b7f2..8dee03c 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: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message