//hbase-env.sh
export JAVA_HOME=/home/hadoop/jdk1.7.0_80
//export HBASE_CLASSPATH=${HADOOP_HOME}/conf
export HBASE_MANAGES_ZK=true
//regionservers
master
slave1
slave2
//hbase-site.xml
<configuration>
//hdfs 地址或者本地文件地址
<property>
<name>hbase.rootdir</name>
<value>hdfs://master:9000/hbase</value>
<description>The directory shared by RegionServers.
</description>
</property>
//存放zookeeper等路径
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/hadoop/hbase-1.1.3/zkdata</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
<description>The mode the cluster will be in. Possible values are
false: standalone and pseudo-distributed setups with managed Zookeeper
true: fully-distributed with unmanaged Zookeeper Quorum (see hbase-env.sh)
</description>
</property>
<property>
<name>hbase.master</name>
<value>master:60000</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>master,slave1,slave2</value>
</property>
</configuration>
//etc/profile
export HBASE_HOME=/home/hadoop/hbase-1.1.3
export HBASE_CLASSPATH=${HBASE_HOME}/*.jar:${HBASE_HOME}/lib/*.jar
//启动
hbase-daemon.sh start zookeeper
hbase-daemon.sh start master
hbase-daemon.sh start regionserver
jps 有三个进程
#全部启动
start-hbase.sh
#停止
stop-hbase.sh
//*********************shell操作******//
hbase shell
http://localhost:16010/master-status