This section demonstrates how to use the HappyBase Python library to
access data from HBase.
Launch a Python 3 session and use the workbench command prompt to install the
happybase package.
!pip3 install happybase
Use happybase to connect to the employees table
created in the previous step.
Python
import happybase
connection = happybase.Connection(host='<hbase_thrift_server_hostname>', port=9090, autoconnect=True)
table = connection.table('employees')
rows = table.rows(['1','2','3'])
for key, data in rows:
print(key, data)
This site uses cookies and related technologies, as described in our privacy policy, for purposes that may include site operation, analytics, enhanced user experience, or advertising. You may choose to consent to our use of these technologies, or