ZooKeeper集群下hbase配置

把zookeeper启动起来
我们这里有三台ZK,slave1.hadoop,slave2.hadoop,slave3.hadoop
例如配置文件zoo.cfg
clientPort=2181
server.1=slave1.hadoop:2888:3888
server.2=slave2.hadoop:2888:3888
server.3=slave3.hadoop:2888:3888

Hbase的相关配置
修改hbase-env.sh
export JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64
export HBASE_IDENT_STRING=$HOSTNAME
export HBASE_CLASSPATH=/home/hadoop/hbase-0.96/lib
export HBASE_MANAGES_ZK=false

 修改hbase-site.xml
<property>
                   <name>hbase.master</name>
                   <value>slave1.hadoop:60000</value>
         </property>
         <property>
                   <name>hbase.rootdir</name>
                   <value>hdfs://slave1.hadoop:8020/hbase</value>
         </property>
         <property>
                   <name>hbase.cluster.distributed</name>
                   <value>true</value>
         </property>
         <property>
                   <name>hbase.zookeeper.property.clientPort</name>
                   <value>2181</value>
         </property>
         <property>
                   <name>hbase.zookeeper.quorum</name>
                   <value>slave1.hadoop,slave2.hadoop,slave3.hadoop</value>
         </property>
         <property>
                   <name>hbase.regionserver.handler.count</name>
                   <value>100</value>
         </property>
         <property>
                   <name>hbase.client.write.buffer</name>
                   <value>5242880</value>
         </property>

你可能感兴趣的:(zookeeper集群,hbase配置)