Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # user - Pass -D options to hadoop jar


Copy link to this message
-
Pass -D options to hadoop jar
Saptarshi Guha 2010-11-24, 19:30
Hello,

A rather basic question, how do I pass the -D option to the wordcount?
I've tried several without
much success
hadoop jar  /usr/lib/hadoop/hadoop-0.20.2+320-examples.jar -D
mapred.job.tracker=local wordcount /wsc/sguha-test/x1
/wsc/sguha-test/x1.o

Unknown program '-D' chosen.
hadoop jar -D mapred.job.tracker=local
/usr/lib/hadoop/hadoop-0.20.2+320-examples.jar -wordcount
/wsc/sguha-test/x1 /wsc/sguha-test/x1.o

Exception in thread "main" java.io.IOException: Error opening job jar: -D
at org.apache.hadoop.util.RunJar.main(RunJar.java:124)
Is there a way to pass -D options to hadoop jar?

Thanks
S