stay Centos7 Tests done in the environment ,python3,hbase1.2.4,happybase,
Python read out Hbase A field in the table of (happybase) Then print it out on the console .
The code is as follows ( Example ):
import happybase
The code is as follows ( Example ):
import happybase
connection = happybase.Connection('192.168.113.201', port=9090)
connection.open()
table = connection.table('t11')
#f1 Of row1 The content output of
row = table.row('row1', columns=['f1'])
print("---------------------")
for key, value in row.items():
# The fields in the same row are cycled
if (key.decode("utf8") == 'f1:name') :
#name The occasion of , Output name
print(value.decode("utf8"))
Thank you for reading , Hope to save your time .