Friday, August 16, 2019

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'  

No comments:

Post a Comment

Lab 09: Publish and subscribe to Event Grid events

  Microsoft Azure user interface Given the dynamic nature of Microsoft cloud tools, you might experience Azure UI changes that occur after t...