Posted in Programming | Posted on 02-08-2012|
I would like to share some basic tricks to use with Apache HBase shell that I have learned by reading HBase: The Definitive Guide by L.George, HBase in Action by N.Dimiduk and A.Khurana and taking part in Cloudera Training for Apache HBase.
In this post, I will create HBase table, populate it with sample data and scan it. Each step will demonstrate a different technique to achieve the goal.
Create the User table
You can pipe commands to the hbase shell and easily create the table using one single command (without the need to explicitely launch the HBase shell first).
$ echo "create 'user', 'info'" | hbase shell create 'user', 'info' 0 row(s) in 1.7610 seconds