mapreduce - Cannot run Java class files with hadoop streaming -


whenever trying use java class files mapper and/or reducer getting following error:

java.io.ioexception: cannot run program "mappertst.class": java.io.ioexception: error=2, no such file or directory

i executed following command on terminal:

hadoop@ubuntu:/usr/local/hadoop$ bin/hadoop jar contrib/streaming/hadoop-streaming-0.20.203.0.jar -file /home/hadoop/codes/mappertst.class -mapper /home/hadoop/codes/mappertst.class -file /home/hadoop/codes/reducertst.class -reducer /home/hadoop/codes/reducertst.class  -input gutenberg/* -output gutenberg-outputtstch27 

assuming qualified mapper class name (including package) codes.mappertest , reducer class name codes.reducertst,

package map , reduce classes jar file /home/hadoop/test.jar command should work if modify :

 hadoop@ubuntu:/usr/local/hadoop$ bin/hadoop jar \    contrib/streaming/hadoop-streaming-0.20.203.0.jar \    -libjars /home/hadoop/test.jar \    -mapper codes.mappertst \    -reducer codes.reducertst \    -input gutenberg/* -output gutenberg-outputtstch27 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -