-
Type:
Sub-task
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.8.0, 3.0.0-alpha1
-
Component/s: None
-
Labels:None
-
Hadoop Flags:Reviewed
In both tools, if "-h" is specified as the only option, it throws error as input and output not specified.
master:/home/nijel/hadoop-3.0.0-SNAPSHOT/bin # ./hdfs oev -h Error parsing command-line options: Missing required options: o, i Usage: bin/hdfs oev [OPTIONS] -i INPUT_FILE -o OUTPUT_FILE
In code the parsing is happening before the "-h" option is verified
Can add code to return after initial check.
if (argv.length == 1 && argv[1] == "-h") { printHelp(); return 0; }