【Zookeeper】zookeeper叢集安裝
單節點安裝參考:http://blog.sina.com.cn/s/blog_6f6bc30e0101pb13.html
zookeeper叢集安裝
zookeeper叢集安裝
- 注意事項:
- 1.注意 /etc/hosts需要配置
- 2.注意開啟每臺節點之間的iptables通訊
3臺主機配置檔案如下
-
[root@DB-23 zookeeper]# more conf/zoo.cfg | grep -v "#"
-
tickTime=2000
-
initLimit=10
-
syncLimit=5
-
dataDir=/data/app/zookeeper/data
-
clientPort=2181
-
autopurge.purgeInterval=1
-
-
server.1=10.32.7.113:2889:3888
-
server.2=10.32.7.112:2889:3888
- server.3=10.32.7.111:2889:3888
修改每臺機器的myid
-
myid需要與配置檔案中的server後面的數字對應
-
[root@DB-23 data]# pwd
/data/app/zookeeper/data
[root@DB-23 data]# more myid
1 -
[root@DB-22 data]# pwd
/data/app/zookeeper/data
[root@DB-22 data]# more myid
2
-
[root@DB-21 data]# pwd
/data/app/zookeeper/data
[root@DB-21 data]# more myid
3
啟動每臺機器的zookeeper並校驗
-
[root@DB-21 conf]# zk-server status
-
JMX enabled by default
-
Using config: /data/app/zookeeper/bin/../conf/zoo.cfg
-
Mode: follower
-
-
[root@DB-22 conf]# zk-server status
-
JMX enabled by default
-
Using config: /data/app/zookeeper/bin/../conf/zoo.cfg
-
Mode: leader --選出來的leader
-
-
[root@DB-23 data]# zk-server status
-
JMX enabled by default
-
Using config: /data/app/zookeeper/bin/../conf/zoo.cfg
- Mode: follower
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29096438/viewspace-2120934/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ZooKeeper叢集安裝和部署
- Zookeeper介紹與叢集安裝
- centos7下zookeeper叢集安裝部署CentOS
- 大資料規整-10-zookeeper單機叢集安裝和使用大資料
- 安裝Zookeeper和Kafka叢集Kafka
- zookeeper 叢集搭建
- Zookeeper叢集搭建
- ZooKeeper叢集解析
- Zookeeper叢集 + Kafka叢集Kafka
- Zookeeper-3.4.10 叢集的安裝配置
- ZooKeeper 搭建 solr 叢集Solr
- zookeeper叢集的搭建
- 搭建zookeeper叢集(偽叢集)
- 安裝配置 zookeeper (單機非叢集模式)模式
- ZooKeeper 05 - ZooKeeper 叢集的腦裂問題(Split Brain)AI
- zookeeper叢集及kafka叢集搭建Kafka
- zookeeper 高可用叢集搭建
- ActiveMQ+ZooKeeper 叢集整合MQ
- Zookeeper 叢集環境搭建
- Dubbo+Zookeeper叢集案例
- Linux下搭建ZooKeeper叢集Linux
- TiDB叢集安裝TiDB
- StarRocks 叢集安裝
- Kubernetes 叢集安裝
- 【redis叢集安裝】Redis
- cdh 叢集安裝
- kubernetes叢集安裝
- Zookeeper3.4.14(單叢集)、Kafka_2.12-2.2.2(叢集)安裝Kafka
- linux下搭建ZooKeeper叢集(偽叢集)Linux
- Zookeeper的安裝
- Zookeeper 安裝配置
- docker安裝zookeeperDocker
- ZooKeeper 系列(二)—— Zookeeper單機環境和叢集環境搭建
- [Zookeeper-01]什麼是zookeeper?& Linux / Windows Zookeeper安裝和部署(單點)LinuxWindows
- Zookeeper簡介與叢集搭建
- ActiveMQ+ZooKeeper 偽叢集整合MQ
- ElasticSearch 6.6.0叢集安裝Elasticsearch
- Hadoop叢集安裝配置Hadoop
- Elasticsearch 叢集安裝部署Elasticsearch