Posts Tagged ‘HBase’

Quick Tip: Scaling in Hbase

Everything scales — hence autosharding, notifications to ZooKeeper, etc

So you don’t have to do anything to make it distributed/scalable

Hbase: Disable and Drop

Disable and drop your table to clean up:

hbase(main):012:0> disable 'test'
0 row(s) in 1.0930 seconds
hbase(main):013:0> drop 'test'
0 row(s) in 0.0770 seconds 

Exit the shell by typing exit.

hbase(main):014:0> exit

Quick Tip: HBase Get (a simple example)

hbase(main):009:0> get  ‘test’, ‘row1’

COLUMN                CELL
 cf:a                 timestamp=1381963930588, value=value1

1 row(s) in 0.0190 seconds

Quick Tip: HBase Scan (a simple example)

hbase(main):008:0> scan ‘test’
ROW                   COLUMN+CELL
 row1                 column=cf:a, timestamp=1381963930588, value=value1
 row2                 column=cf:b, timestamp=1381963944569, value=value2
 row3                 column=cf:c, timestamp=1381963957538, value=value3

3 row(s) in 0.1270 seconds

Quick Tip: How to Connect to a Running Session (shell) in HBase in 1 Line

./bin/hbase shell
Stackoverflow Solutions

Just started! Have not answered any questions.