HBase
Download
$ wget http://mirror.apache-kr.org/hbase/hbase-0.98.0/hbase-0.98.0-hadoop2-bin.tar.gz
$ tar zxvf hbase-0.98.0-hadoop2-bin.tar.gz
Configuration
hbase-env.sh
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
# Tell HBase whether it should manage it's own instance of Zookeeper or not.export
HBASE_MANAGES_ZK=false
hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://master:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.tmp.dir</name>
<value>/tmp/hbase</value>
</property>
<property>
<name>hbase.ZooKeeper.quorum</name>
<value>zoo1,zoo2,zoo3</value>
</property>
</configuration>
Link hdfs-site.xml
$ ln -sf $HADOOP_HOME/conf/hdfs-site.xml $HBASE-HOME/conf/hdfs-site.xml
Replace library
$HBASE-HOME/lib 라이브러리를 설치한 hadoop, zookeeper 라이브러리 버전으로 교체한다.
$ ls -al $HBASE-HOME/lib zoo* hbase*
Start / Stop HBase
$ bin/start-hbase.sh
$ bin/stop-hbase.sh
Check Installation
$ ./bin/hadoop fs -ls /hbase
Found 7 items
drwxr-xr-x - hadoop supergroup 0 2014-05-08 17:26 /hbase/.tmp
drwxr-xr-x - hadoop supergroup 0 2014-05-08 17:26 /hbase/WALs
drwxr-xr-x - hadoop supergroup 0 2014-05-08 17:32 /hbase/archive
drwxr-xr-x - hadoop supergroup 0 2014-05-08 16:24 /hbase/data
-rw-r--r-- 3 hadoop supergroup 42 2014-05-08 14:26 /hbase/hbase.id
-rw-r--r-- 3 hadoop supergroup 7 2014-05-08 14:26 /hbase/hbase.version
drwxr-xr-x - hadoop supergroup 0 2014-05-09 11:26 /hbase/oldWALs
Web Interface
http://master:60010
Reference
http://hbase.apache.org/book/standalone_dist.html#distributed
http://doc.mapr.com/display/MapR/HBase
http://archanaschangale.wordpress.com/2013/08/31/installing-pseudo-distributed-hbase-on-ubuntu/
'dev > hbase' 카테고리의 다른 글
Steps to install Replicated ZooKeeper (0) | 2014.05.09 |
---|---|
Steps to install Hadoop 2.2.0 release on multi-node cluster (0) | 2014.05.09 |