Cheap VPS & Xen Server

Residential Proxy Network - Hourly & Monthly Packages

HBase Commands

A list of HBase commands are given below.

  • Create: Creates a new table identified by ‘table1’ and Column Family identified by ‘colf’.
  • Put: Inserts a new record into the table with row identified by ‘row..’
  • Scan: returns the data stored in table
  • Get: Returns the records matching the row identifier provided in the table
  • Help: Get a list of commands
  1. create ‘table1’, ‘colf’
  2. list ‘table1’
  3.  put ‘table1’, ‘row1’, ‘colf:a’, ‘value1’
  4.  put ‘table1’, ‘row1’, ‘colf:b’, ‘value2’
  5.  put ‘table1’, ‘row2’, ‘colf:a’, ‘value3’
  6.  scan ‘table1’
  7.  get ‘table1’, ‘row1’