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)
This commit is contained in:
parent
9c7ce389c7
commit
5522a46f4c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user