importerror:没有名为happybase的模块

knpiaxh1  于 2021-06-09  发布在  Hbase
关注(0)|答案(1)|浏览(549)

我有一个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

我看到happybase模块在下面 /usr/local/lib/python2.7/site-packages/happybase

yuvru6vn

yuvru6vn1#

也许执行map reduce作业的机器没有安装happybase?

相关问题