在Centos7环境中做的测试,python3,hbase1.2.4,happybase,
Python读出Hbase的表中一个字段(happybase)后在控制台打印出来。
1.引入库
代码如下(示例):
import happybase
2.准备好Hbase的表(t11)的数据
3.读入Hbase的数据Python代码
代码如下(示例):
import happybase
connection = happybase.Connection('192.168.113.201', port=9090)
connection.open()
table = connection.table('t11')
#f1的row1的内容输出
row = table.row('row1', columns=['f1'])
print("---------------------")
for key, value in row.item