设为首页 加入收藏

TOP

【python 连接hbase】python连接hbase 简单
2018-12-16 18:37:34 】 浏览:45
Tags:python 连接 hbase 简单
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013421629/article/details/81333162

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 解决 :NameError: name &.. 下一篇年薪百万的python大佬竟然有空整..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目