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

This closes #108
This commit is contained in:
Akira Ajisaka 2016-07-07 15:29:26 -07:00
parent 6e597600f7
commit 9d46a49c74
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}