Python经过thrift 操做hbase

一.   环境安装php


1.  安装luapython

    yum -y install readline-devel ncurses-devellinux

    wget -c http://www.lua.org/ftp/lua-5.2.0.tar.gz apache

    cd lua-5.2.0centos

    make linuxapp

    make installsocket


2.  安装bisonlua

    http://download.chinaunix.net/download.php?id=44950&ResourceID=913spa


3.  problem.net

    http://stackoverflow.com/questions/20490854/luasocket-c2017-error-lua-h-no-such-file-or-directory



2、安装参考:

http://thrift.apache.org/docs/install/centos



3、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/

相关文章
相关标签/搜索