HBase 安裝
按照 https://hbase.apache.org/book.html#quickstart 安裝。
安裝完后啟動 hbase 服務:
bin/start-hbase.sh
啟動 thirt 服務(默認端口 9090)
bin/hbase-daemon.sh start thrift
python 安裝 happybase
pip3 install happybase
開發(fā)示例
import happybase
conn = happybase.Connection("127.0.0.1", 9090)
conn.tables()