发布时间:2019-09-08 09:14:59编辑:auto阅读(3066)
python是通过thrift去访问操作hbase
1、首先需要先安装happyhbase和thrift
pip install happybase
pip install thrift
2、需要修改源码一个文件parser.py
如果执行的时候报错:
py.parser.exc.ThriftParserError: ThriftPy does not support generating module with path in protocol ‘c’
则将 C:/Python27/Lib/site-packages/thriftpy/parser/parser.py …
if url_scheme == ”:
修改为
if len(url_scheme) <= 1:
再次执行即可。
3、python 操作hbase 用法参考官网
http://happybase.readthedocs.io/en/latest/user.html#retrieving-data
详细介绍都在里面。
上一篇: 使用python给outlook多个联系
下一篇: python 宏使用详解
51777
51465
41866
38644
33134
30122
28799
23790
23706
22073
136°
2303°
2996°
2504°
2448°
3062°
2449°
3264°
5381°
5199°