/opt/app/zookeeper-3.4.5/conf/zoo.cfg tickTime=2000 initLimit=10 syncLimit=5 dataDir=/opt/app/zookeeper-3.4.5/data/zkData dataLogDir=/opt/app/zookeeper-3.4.5/logs clientPort=2181 server.1=hadoop-senior.huiyunltd.com:2888:3888 server.2=hadoop-senior02.huiyunltd.com:2888:3888 server.3=hadoop-senior03.huiyunltd.com:2888:3888 [huiyunltd@hadoop-senior ~]$ touch /opt/app/zookeeper-3.4.5/data/zkData/myid [huiyunltd@hadoop-senior ~]$ echo "1" >> /opt/app/zookeeper-3.4.5/data/zkData/myid [huiyunltd@hadoop-senior ~]$ scp -r /opt/app/zookeeper-3.4.5/ huiyunltd@hadoop-senior02.huiyunltd.com:/opt/app/ [huiyunltd@hadoop-senior ~]$ scp -r /opt/app/zookeeper-3.4.5/ huiyunltd@hadoop-senior03.huiyunltd.com:/opt/app/ [huiyunltd@hadoop-senior02 ~]$ vim /opt/app/zookeeper-3.4.5/data/zkData/myid 2 [huiyunltd@hadoop-senior03 ~]$ vim /opt/app/zookeeper-3.4.5/data/zkData/myid 3 huiyunltd@hadoop-senior ~]$ /opt/app/zookeeper-3.4.5/bin/zkServer.sh start [huiyunltd@hadoop-senior02 ~]$ /opt/app/zookeeper-3.4.5/bin/zkServer.sh start [huiyunltd@hadoop-senior03 ~]$ /opt/app/zookeeper-3.4.5/bin/zkServer.sh start [huiyunltd@hadoop-senior03 ~]$ /opt/app/zookeeper-3.4.5/bin/zkServer.sh status [huiyunltd@hadoop-senior02 ~]$ /opt/app/zookeeper-3.4.5/bin/zkServer.sh status [huiyunltd@hadoop-senior ~]$ /opt/app/zookeeper-3.4.5/bin/zkServer.sh status
Mode: follower
Mode: leader
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。