$ wget http://ftp.riken.jp/net/apache/hbase/stable/hbase-1.0.0-bin.tar.gz
@ uncompress on the [/usr/local/src]
$ tar xvf ./hbase-1.0.0-bin.tar.gz
$ mv ./hbase-1.0.0 ../hbase
$ chown -R hadoop.hadoop ./hbase/
$ cd ./hbase/conf
@ Set configuration
$ vim ./hbase-env.sh
export JAVA_HOME=/usr/local/java
export HBASE_MANAGES_ZK=false
export HBASE_MANAGES_ZK=false
@ Set environment variables
$ vim ./.bash_profile
export HBASE_HOME=/usr/local/hbase
export PATH=$HBASE_HOME/bin:$PATH
export PATH=$HBASE_HOME/bin:$PATH
@Make a public key (on hadoop user)
$ ssh-keygen -t rsa
@Copy a public key into authorized_keys in other server (on hadoop user)
@ Make a folder hbase( on Name Server)
$ cd /usr/local/hadoop/bin
$ ./hadoop fs -mkdir /hbase
@ If there are 3 server on the zookeeper.
$ vim ./hbase-site.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<property> | |
<name>hbase.rootdir</name> | |
<value>hdfs://192.168.11.23:9000/hbase</value> | |
</property> | |
<property> | |
<name>hbase.zookeeper.quorum</name> | |
<value>192.168.11.24,192.168.11.25,192.168.11.26</value> | |
</property> | |
<property> | |
<name>hbase.zookeeper.property.dataDir</name> | |
<value>/tmp/zookeeper</value> | |
</property> | |
<property> | |
<name>hbase.zookeeper.property.clientPort</name> | |
<value>2181</value> | |
</property> | |
<property> | |
<name>hbase.cluster.distributed</name> | |
<value>true</value> | |
</property> | |
<property> | |
<name>hbase.zookeeper.peerport</name> | |
<value>2888</value> | |
</property> | |
<property> | |
<name>hbase.zookeeper.leaderport</name> | |
<value>3888</value> | |
</property> | |
</configuration> |
# You have to execute the zookeeper first
@Check URL
http://192.168.11.23:60010/master-status?filter=handler
No comments:
Post a Comment