每當我試圖使用Java類文件爲我的映射器和/或減速我收到以下錯誤:不能用Hadoop流運行Java類文件
java.io.IOException: Cannot run program "MapperTst.class": java.io.IOException: error=2, No such file or directory
我執行的終端上運行以下命令:
[email protected]:/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