HBase client development

Common hbase shell commands

  • Show all tables.

hbase(main): > list

  • Create a table named test with a single column family named data.

hbase(main): > create 'test', 'data'

  • Import data into hbase

hbase(main): > put 'test', 'row1', 'data:1', 'value1'

hbase(main): > put 'test', 'row2', 'data:2', 'value2'

hbase(main): > put 'test', 'row3', 'data:3', 'value3'

  • Get details from table ‘test’

hbase(main): > scan 'test'

hbase_client_result

  •  Drop table

hbase(main): > disable 'test'

hbase(main): > drop 'test'

 

 

 

 

 

 

 

 

 

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>