导入错误:没有名为happybase的模块
我有一个mapreduce程序,它通过happybase连接到Hbase。现在我遇到了以下错误
文件
/hadoop/yarn/local/usercache/aprakash/appcache/application_1407169690715_0025/container_1407169690715_0025_01_000002/./testhappybase.py, line 9, in <module>
import happybase
ImportError: No module named happybase
当我独立运行这个程序时,可以正常导入happybase。下面的命令是我运行hadoop作业的方式
hadoop jar /usr/lib/hadoop-mapreduce/hadoop-streaming.jar -file
/home/aprakash/testhappybase.py -mapper /home/aprakash/testhappybase.py -file
/home/aprakash/workspace/reducer.py -reducer /home/aprakash/workspace/reducer.py -input
/user/aprakash/flume-channel/apache_access_combined/* -output /user/aprakash/flume-channel-output2
我在 /usr/local/lib/python2.7/site-packages/happybase
目录下看到了happybase模块
1 个回答
2
也许运行这些map reduce任务的机器上没有安装Happybase?