Various HBase Clients

03 Sep

Hbase another library

: python library for HBase

REST – Stargate

1 start: hbase rest start -p <port number> end: hbase rest stop
2 Get Software Version
curl http://localhost:8000/version
curl -H "Accept: application/json" http://localhost:8000/version
3 Get Storage Cluster Version
curl http://localhost:8000/version/cluster
4 Get Storage Cluster Status
curl -H "Accept: text/xml" http://localhost:8000/status/cluster
Result includes: number of request, number of regions, average load, region name on each node
5 Get Table list
curl -H "Accept: application/json" http://localhost:8000/
Result is like: {“Table”:[{“name”:”content”},{“name”:”urls”}]}
6 Get Table Schema
curl http://localhost:8000//schema
7 Get Table Metadata
curl -H "Accept: application/json" http://localhost:8000/content/regions

Leave a comment

Posted by on September 3, 2012 in HBase



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: