Difference between revisions of "HBase"

From air
Jump to navigation Jump to search
Line 37: Line 37:
 
</pre>
 
</pre>
   
==Launch the CLI==
+
==Launch the standalone==
   
 
<pre>
 
<pre>
 
bin/start-hbase.sh
 
bin/start-hbase.sh
  +
</pre>
  +
  +
==Launch the CLI==
  +
  +
<pre>
  +
bin/hbase shell
  +
</pre>
  +
  +
<pre>
  +
help
  +
  +
create 'device', {NAME => 'deveui', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true}, {NAME => 'value'}
  +
  +
list
  +
  +
scan 'device'
  +
  +
put 'device', 'deveui', 'colfam:qual’, ‘value’
  +
  +
get 'device', 'deveui'
  +
  +
disable 'device'
  +
  +
drop 'device'
  +
  +
</pre>
  +
  +
  +
==Stop the standalone server==
  +
<pre>
  +
bin/stop-hbase.sh
 
</pre>
 
</pre>
   

Revision as of 14:28, 27 May 2015

Apache HBase is the Hadoop database, a distributed, scalable, big data store.

Use Apache HBase™ when you need random, realtime read/write access to your Big Data. This project's goal is the hosting of very large tables -- billions of rows X millions of columns -- atop clusters of commodity hardware. Apache HBase is an open-source, distributed, versioned, non-relational database modeled after Google's Bigtable: A Distributed Storage System for Structured Data by Chang et al. Just as Bigtable leverages the distributed data storage provided by the Google File System, Apache HBase provides Bigtable-like capabilities on top of Hadoop and HDFS.

Getting Started

http://hbase.apache.org/book.html#quickstart


Set the configuration file hbase-site.xml


More about HBase configuration file.

Set the JAVA_HOME

On MacOS X

export JAVA_HOME=`/usr/libexec/java_home -v 1.8`

Installation

Download the latest version of the binary :

export $HBASE_VERSION=1.1.0.1
tar xf hbase-$HBASE_VERSION.tgz
mv hbase-$VERSION hbase
cd hbase

Launch the standalone

bin/start-hbase.sh

Launch the CLI

bin/hbase shell
help

create 'device', {NAME => 'deveui', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true}, {NAME => 'value'}

list

scan 'device'

put 'device', 'deveui', 'colfam:qual’, ‘value’

get 'device', 'deveui'

disable 'device'

drop 'device'


Stop the standalone server

bin/stop-hbase.sh

Multi-servers Configuration

Zookeeper