我用的是cdh4.5版本:
配置文件:$HBASE_HOME/conf/hbase-env.sh
export JAVA_HOME=$JAVA_HOME
export JAVA_HOME=/home/hadoop/jdk1.7.0_51
export HBASE_CLASSPATH=$HBASE_HOME/conf
# Tell HBase whether it should manage it's own instance of Zookeeper or not.
export HBASE_MANAGES_ZK=true
配置文件: 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.master</name>
<value>master:60000</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>dfs.replication</name>
<value>3</value>
</property>
<property>
<name>hbase.master.maxclockskew</name>
<value>18000</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>根据自己实际服务器配置,</value>
</property>
<property>
<name>hbase.regionserver.handler.count</name>
<value>30</value>
</property>
</configuration>
配置文件:regionservers
slave1
slave2根据自己实践服务器配置
成功页面:
主节点:
进入shell 创建表: