Hbase insert data in table

Posted on

 

put command inserts row in hbase table 'employee' with column-family 'name' and columns first_name. 'John' is value for column 'first_name'.

put 'employee',row-1,'name:first_name','John'

This put command inserts rows in hbase table 'employee' with column-family 'name' and columns first_name and last_name. 'Peter' is value for column 'first_name', 'Parker' is value for column last_name.

put 'employee','row-3','name:'first_name'=>'Peter'
put 'employee','row-3','name:'last_name'=>'Parker'
Output

hbaserow
hbaserowinsert