I'm running the classic hadoop word count program and couldn't really figure out how GenericOptionsParser works in the following scenario.
String otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();
Command to run the word count program:
hadoop jar /home/hduser/WordCount/wordcount.jar WordCount input output
From the above command, GenericOptionsParser picks up input as otherArgs and output as otherArgs. Why doesn't it pick up WordCount as an argument? How does it exactly work??
I've looked at the GenericOptionsParser source code from hadoop utils but couldn't make much sense of it. Any guidance would be really helpful...
HEADQUARTERS|135 SW Taylor Suite 200, Portland, Oregon, 97204