您的位置:首页 > 编程语言 > Python开发

Python通过thrift 操作hbase

2016-03-02 00:00 926 查看
摘要: Python thrift hadoop hbase

一. 环境安装

1. 安装lua
yum -y install readline-devel ncurses-devel
wget -c http://www.lua.org/ftp/lua-5.2.0.tar.gz cd lua-5.2.0
make linux
make install

2. 安装bison http://download.chinaunix.net/download.php?id=44950&ResourceID=913
3. problem
http://stackoverflow.com/questions/20490854/luasocket-c2017-error-lua-h-no-such-file-or-directory

二、安装参考:
http://thrift.apache.org/docs/install/centos

三、python 操作hbase
1. 首先确保hbase的thrift端口9090是否打开
netstat -nl|grep 9090

2. 安装thrift
pip install thrift

3. 安装happybase
pip install hadppybase
http://happybase.readthedocs.org/en/latest/
参考链接
http://shineforever.blog.51cto.com/1429204/1567640/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Python lua thrift hbase hadoop