3

I am using args4j in order to process my options that I will pass as parameter to the program. I also want to increase the heap size. So that I would like to run something like:

> hadoop jar hadoop-program.jar -i /input/directory -o /output/directory -Dmapred.child.java.opts=-Xmx10G

Obviously, I am getting the following error:

Exception in thread "main" org.kohsuke.args4j.CmdLineException: "-Dmapred.child.java.opts=-Xmx10G" is not a valid option

Could someone please tell me how to handle this.

dbustosp
  • 4,208
  • 25
  • 46
  • What is with `hadoop jar -Dmapred.child.java.opts=-Xmx10G hadoop-program.jar -i /input/directory -o /output/directory` ? – PeterMmm Dec 14 '16 at 11:49
  • @PeterMmm in that way I will get an issue like: "Not a valid JAR: -Dmapreduce.map.java.opts" – dbustosp Dec 14 '16 at 11:54

0 Answers0