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/

相關文章
相關標籤/搜索