1.Install
(1).Download
ここからダウンロード。
(2)./usr/localへ移動、リンク設定、.bashrc設定
cd /usr/local/
cp -rf /home/hadoop/download/hbase-0.20.6 .
ln -s hbase-0.20.6 hbase
$ vim ~/.bashrc
export HBASE_HOME=/usr/local/hbase
(3).環境設定
$ diff conf/hbase-env.sh conf/hbase-env.sh_org
26d25
< export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
33d31
< export HBASE_HEAPSIZE=2000
65d62
< export HBASE_IDENT_STRING=$HOSTNAME
80d76
< export HBASE_MANAGES_ZK=false
(4).hbase-site.xml設定(参考サイト:HBase Official Site, hbase-site.xmlメモ)
$ diff conf/hbase-site.xml conf/hbase-site.xml.psuedo-distributed.template
< <property>
< <name>hbase.rootdir</name>
< <value>hdfs://localhost:9000/hbase</value>
< <description>The directory shared by region servers.
< Should be fully-qualified to include the filesystem to use.
< E.g: hdfs://NAMENODE_SERVER:PORT/HBASE_ROOTDIR
< </description>
< </property>
< <property>
< <name>hbase.tmp.dir</name>
< <value>/var/run/hbase</value>
< <description>Temporary directory on the local filesystem.</description>
< </property>
(5).起動
$ bin/start-hbase.sh
(6).Shell起動
$ bin/hbase shell