HBase: Difference between revisions
No edit summary |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
Set the configuration file |
Set the configuration file hbase-site.xml |
||
<pre> |
<pre> |
||
</pre> |
|||
More about [http://hbase.apache.org/book.html#hbase_default_configurations HBase configuration file]. |
|||
Set the JAVA_HOME |
|||
''On MacOS X'' |
|||
<pre> |
|||
export JAVA_HOME=`/usr/libexec/java_home -v 1.8` |
|||
</pre> |
</pre> |
||
Line 23: | Line 31: | ||
<pre> |
<pre> |
||
export $HBASE_VERSION=1.1.0.1 |
|||
tar xf hbase-$HBASE_VERSION.tgz |
|||
mv hbase-$VERSION hbase |
|||
cd hbase |
|||
</pre> |
|||
==Launch the standalone== |
|||
<pre> |
|||
bin/start-hbase.sh |
|||
</pre> |
</pre> |
||
Line 29: | Line 46: | ||
<pre> |
<pre> |
||
bin/hbase shell |
|||
</pre> |
|||
<pre> |
|||
help |
|||
create 'sensordata', {NAME => 'sensoreui', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true}, {NAME => 'timestamp'}, {NAME => 'value'}, {NAME => 'unit'}, {NAME => 'error'} |
|||
list |
|||
scan 'sensordata' |
|||
put 'sensordata', 'sensoreui', 'colfam:qual’, ‘value’ |
|||
get 'sensordata', 'sensoreui' |
|||
disable 'sensordata' |
|||
drop 'sensordata' |
|||
</pre> |
|||
==Launch the Node.js client== |
|||
Voir le package https://www.npmjs.com/package/hbase-client |
|||
<pre> |
|||
npm install hbase-client --save |
|||
</pre> |
|||
==Stop the standalone server== |
|||
<pre> |
|||
bin/stop-hbase.sh |
|||
</pre> |
</pre> |
||
Line 39: | Line 88: | ||
</pre> |
</pre> |
||
=Others= |
|||
* [[OpenTSDB]] & HBase http://opentsdb.net/docs/build/html/user_guide/backends/hbase.html |
|||
* [http://dx.doi.org/10.1109/MESOCA.2012.6392598 A three-dimensional data model in HBase for large time-series dataset analysis] ([http://fr.slideshare.net/hhdd2005/a-3-dimensional-data-model-in-hbase-for-large-timeseries-dataset20120915-14299858 slides]). |
Latest revision as of 13:35, 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.
- Web site http://hbase.apache.org/
- Book http://hbase.apache.org/book.html
- Refcard http://refcardz.dzone.com/refcardz/hbase
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 'sensordata', {NAME => 'sensoreui', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true}, {NAME => 'timestamp'}, {NAME => 'value'}, {NAME => 'unit'}, {NAME => 'error'} list scan 'sensordata' put 'sensordata', 'sensoreui', 'colfam:qual’, ‘value’ get 'sensordata', 'sensoreui' disable 'sensordata' drop 'sensordata'
Launch the Node.js client
Voir le package https://www.npmjs.com/package/hbase-client
npm install hbase-client --save
Stop the standalone server
bin/stop-hbase.sh
Multi-servers Configuration
Zookeeper