http://apache.fayea.com/zookeeper/stable/

wget http://apache.fayea.com/zookeeper/stable/zookeeper-3.4.8.tar.gz
tar zxvf zookeeper-3.4.8.tar.gz
mv zookeeper-3.4.8 /home/hadoop/zookeeper
cd /home/hadoop/zookeeper
mkdir data
mkdir logs

  在/home/hadoop/zookeeper/conf下新建zoo.cfg

tickTime=2000    
dataDir=/home/hadoop/zookeeper/data    
dataLogDir=/home/hadoop/zookeeper/logs    
clientPort=4180 

  启动

bin/zkServer.sh start  

  

 

 

http://apache.fayea.com/hbase/stable/

wget http://apache.fayea.com/hbase/stable/hbase-1.1.4-bin.tar.gz

 

cd /home/hadoop/hbase
cd conf
vi hbase-env.sh
---------

export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.99-2.6.5.0.el7_2.x86_64
export HBASE_OPTS="-XX:+UseConcMarkSweepGC"

# Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"
export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"

 vi hbase-site.xml

<configuration>
<property>
           <name>hbase.master</name>
           <value>hadoop-master:6000</value>
   </property>
   <property>
           <name>hbase.master.maxclockskew</name>
           <value>180000</value>
   </property>
   <property>
           <name>hbase.rootdir</name>
           <value>hdfs://hadoop-master:9000/hbase</value>
   </property>
   <property>
           <name>hbase.cluster.distributed</name>
           <value>true</value>
   </property>
   <property>
           <name>hbase.zookeeper.quorum</name>
           <value>hadoop-master</value>
   </property>
   <property>
           <name>hbase.zookeeper.property.dataDir</name>
           <value>/home/hadoop/zookeeper/data</value>
   </property>
   <property>
           <name>dfs.replication</name>
           <value>1</value>
   </property>
</configuration>

  

posted on 2016-04-13 14:59  凌度  阅读(281)  评论(0编辑  收藏  举报