【1】搭建HA高可用hadoop-2.3(規劃+環境準備)bash
【2】搭建HA高可用hadoop-2.3(安裝zookeeper)ide
【3】搭建HA高可用hadoop-2.3(部署配置hadoop--cdh5.1.0)oop
【4】搭建HA高可用hadoop-2.3(部署配置HBase)spa
安裝部署zookeeperorm
(1)安裝zookeeperserver
master一、master二、slave一、slave二、slave3blog
#cd /opt/ #tar xf zookeeper-3.4.5-cdh5.1.0.tar.gz #ln -s zookeeper-3.4.5-cdh5.1.0.tar.gz zookeeper
(2)配置zookeeperhadoop
master一、master二、slave一、slave二、slave3部署
#mkdir -p /data/zookeeper/{data,logs}get
#cat > /opt/zookeeper/conf/zoo.cfg <<EOF
tickTime=2000
dataDir=/data/zookeeper/data
dataLogDir=/data/zookeeper/logs
clientPort=2181
initLimit=5
syncLimit=2
server.1=10.64.8.1:2888:3888
server.2=10.64.8.2:2888:3888
server.3=10.64.8.3:2888:3888
server.4=10.64.8.4:2888:3888
server.5=10.64.8.5:2888:3888
EOF
master1
#echo 1 > /data/zookeeper/data/myid
master2
#echo 2 > /data/zookeeper/data/myid
slave1
#echo 3 > /data/zookeeper/data/myid
slave2
#echo 4 > /data/zookeeper/data/myid
slave3
#echo 5 > /data/zookeeper/data/myid
(3)啓動zookeeper
master一、master二、slave一、slave二、slave3
#/opt/zookeeper/bin/zkServer.sh start #echo "/opt/zookeeper/bin/zkServer.sh start" >> /etc/rc.local
【2】搭建HA高可用hadoop-2.3(安裝zookeeper)