2、安装
cd gen-py/hbase
python *.py build
python *.py install
cd ..
cp-rhbase/usr/lib/python2.6/site-packages/
3、测试
python
from thrift import Thrift
from thrift.transport import TSocket
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
from hbase import Hbase
from hbase.ttypes import *
transport = TSocket.TSocket('192.168.137.101',9090)
transport = TTransport.TBufferedTransport(transport)