python 通过thrift来操作hbase
在开发环境安装python库 pip install thrift pip install hbase-thrift hbase 中需要开启 hbase-daemon.sh start thrift hadoop、hbse 、Zookeeper 都需要开启from hbase import Hbasefrom thrift.transport import TSocketfrom hbase.ttypes import *# 一定要开启 hbase-daemon.sh start thrift transport=TSocket.TSocket('192.168.206.100',9090