Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Hadoop >> mail # user >> Pass -D options to hadoop jar


Copy link to this message
-
Pass -D options to hadoop jar
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
+
Ken 2010-11-24, 23:06
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB