把zookeeper启动起来
我们这里有三台ZK,slave1.hadoop,slave2.hadoop,slave3.hadoop例如配置文件zoo.cfgclientPort=2181server.1=slave1.hadoop:2888:3888server.2=slave2.hadoop:2888:3888server.3=slave3.hadoop:2888:3888Hbase的相关配置
修改hbase-env.shexport JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64export HBASE_IDENT_STRING=$HOSTNAMEexport HBASE_CLASSPATH=/home/hadoop/hbase-0.96/libexport 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>