barseghyanartur / starbase

DEPRECATED - HBase Stargate (REST API) client wrapper for Python.
https://pypi.python.org/pypi/starbase
53 stars 32 forks source link

I got empty table list using star base? #17

Open hoverzheng opened 8 years ago

hoverzheng commented 8 years ago

Hello All:

(1) I install starbase and write a python script:

from starbase import Connection c = Connection(host='192.168.1.11', port=8022) print c.tables()


but I got empty table list: []

(2) Use hbase shell:

[hdfs@hdp01~]$ hbase shell 15/12/07 16:47:50 INFO Configuration.deprecation: hadoop.native.lib is deprecated. Instead, use io.native.lib.available HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 0.98.6-cdh5.3.3, rUnknown, Wed Apr 8 15:00:15 PDT 2015

hbase(main):001:0> list TABLE
mytable
transactions_hbase
users
3 row(s) in 1.8320 seconds

=> ["mytable", "transactions_hbase", "users"]

What's this problem? How can I solve it? Thank you!!

barseghyanartur commented 8 years ago

are you running the stargate on port 8022?

hoverzheng commented 8 years ago

Thanks for your answer! I installed hadoop(include hbase) use CDH(Cloudera). Maybe, I should install or start this service. I try it. Thanks a lot.