hadoop 1.1.2 - streaming jar not found -


i getting below error: when try execute mapreduce job written in python.. not able locate streaming*.jar... please suggest how issue can solved.. can please guide me in writing bash file below commands..

hduser@hadoop-pc:~/hadoop/contrib$ hadoop jar contrib/streaming/hadoop-*streaming*.jar -file /home/hduser/mapper.py    -mapper /home/hduser/mapper.py -file /home/hduser/reducer.py   -reducer /home/hduser/reducer.py -input /user/hduser/gutenberg/* -output /user/hduser/gutenberg-output warning: $hadoop_home deprecated.  exception in thread "main" java.io.ioexception: error opening job jar: contrib/streaming/hadoop-*streaming*.jar     @ org.apache.hadoop.util.runjar.main(runjar.java:90) caused by: java.io.filenotfoundexception: contrib/streaming/hadoop-*streaming*.jar (no such file or directory)     @ java.util.zip.zipfile.open(native method)     @ java.util.zip.zipfile.<init>(zipfile.java:215)     @ java.util.zip.zipfile.<init>(zipfile.java:145)     @ java.util.jar.jarfile.<init>(jarfile.java:153)     @ java.util.jar.jarfile.<init>(jarfile.java:90)     @ org.apache.hadoop.util.runjar.main(runjar.java:88) 

well, think, not hadoop-streaming.jar, should hadoop-streaming-1.1.2.jar, try this:

hduser@hadoop-pc:~/hadoop$./bin/hadoop jar contrib/streaming/hadoop-streaming-1.1.2.jar** -file /home/hduser/mapper.py    -mapper /home/hduser/mapper.py -file /home/hduser/reducer.py   -reducer /home/hduser/reducer.py -input /user/hduser/gutenberg/* -output /user/hduser/gutenberg-output 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -