#cd training
# tar -zxvf hbase-1.2.6-bin.tar.gz
# rm -rf hbase-1.2.6-bin.tar.gz
# mv hbase-1.2.6/ hbase
#cd hbase/conf
#vi /etc/profile
export HBASE_HOME=/root/training/hbase
export PATH=$PATH:$HBASE_HOME/bin
#source /etc/profile
#vi hbase-env.sh
export JAVA_HOME=/usr/java/default
export HBASE_MANAGES_ZK=true //去掉前面的注释就可以
#vi hbase-site.xml
<property>
<name>hbase.rootdir</name>
<value>hdfs://192.168.56.100:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>192.168.56.100</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
# vi regionservers
192.168.56.100
#cd ~/training
#start-hbase.sh
#jps
#stop-hbase.sh