python - 导入错误 : No module named happybase

标签 python mapreduce hbase happybase

我有一个使用 happybase 连接到 Hbase 的 mapreduce 程序。我收到以下错误
文件

/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模块

最佳答案

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

关于python - 导入错误 : No module named happybase,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25293667/

相关文章:

python - 处理大文件的最快方法?

hadoop - HBase中的WAL文件

permissions - Phoenix v4.4 可以使用 HBase 命名空间吗?

hadoop - 随机播放错误 :exceeded max_failed_unique_matche : bailing out

java - 如果让自定义分区程序为具有相同键的记录选择不同的分区会怎样?

java - 无法使用PreparedStatement在Phoenix中插入行

python - 如何添加与 ManyToManyField 相关的另一个字段?

python Pandas : Filter Dataframe by applying regular expression

c++ - 帮助我将替换文件名扩展名的 Python 代码翻译成 C++

hadoop - 在 hadoop 类路径中添加自定义位置