【1】搭建HA高可用hadoop-2.3(规划+环境准备)
【2】搭建HA高可用hadoop-2.3(安装zookeeper)
【3】搭建HA高可用hadoop-2.3(部署配置hadoop--cdh6.1.0)
【4】搭建HA高可用hadoop-2.3(部署配置HBase)
安装部署zookeeper
(1)安装zookeeper
master1、master2、slave1、slave2、slave3
#cd /opt/ #tar xf zookeeper-3.4.5-cdh6.1.0.tar.gz #ln -s zookeeper-3.4.5-cdh6.1.0.tar.gz zookeeper
(2)配置zookeeper
master1、master2、slave1、slave2、slave3
#mkdir -p /data/zookeeper/{data,logs}
#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
master1、master2、slave1、slave2、slave3
#/opt/zookeeper/bin/zkServer.sh start #echo "/opt/zookeeper/bin/zkServer.sh start" >> /etc/rc.local
【1】搭建HA高可用hadoop-2.3(规划+环境准备)
【2】搭建HA高可用hadoop-2.3(安装zookeeper)
【3】搭建HA高可用hadoop-2.3(部署配置hadoop--cdh6.1.0)
【4】搭建HA高可用hadoop-2.3(部署配置HBase)
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。