Python通过thrift 操作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/





你可能感兴趣的:(hadoop,python,thrift,hbase,lua)