发布时间:2019-09-08 09:14:59编辑:auto阅读(2986)
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 宏使用详解
51551
51114
41648
38403
32890
29869
28583
23538
23471
21821
1967°
2669°
2222°
2158°
2606°
2187°
2916°
4841°
4683°
3326°