【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叢集安裝和部署
- linux ZooKeeper叢集安裝Linux
- Zookeeper介紹與叢集安裝
- hadoop+hbase+zookeeper叢集安裝方法Hadoop
- centos7下zookeeper叢集安裝部署CentOS
- zookeeper 叢集安裝(單點與分散式成功安裝)分散式
- 大資料規整-10-zookeeper單機叢集安裝和使用大資料
- 安裝Zookeeper和Kafka叢集Kafka
- ZooKeeper叢集解析
- zookeeper 叢集搭建
- Zookeeper叢集搭建
- 搭建 zookeeper 叢集
- CentOS6.5 安裝Zookeeper叢集CentOS
- Zookeeper叢集 + Kafka叢集Kafka
- CentOS上zookeeper叢集模式安裝配置CentOS模式
- ZooKeeper 搭建 solr 叢集Solr
- zookeeper叢集的搭建
- 搭建zookeeper叢集(偽叢集)
- Zookeeper-3.4.10 叢集的安裝配置
- 安裝配置 zookeeper (單機非叢集模式)模式
- 【zookeeper安裝】
- Zookeeper安裝
- zookeeper叢集及kafka叢集搭建Kafka
- ActiveMQ+ZooKeeper 叢集整合MQ
- zookeeper 高可用叢集搭建
- Zookeeper 叢集環境搭建
- zookeeper偽叢集模式搭建模式
- ZooKeeper 05 - ZooKeeper 叢集的腦裂問題(Split Brain)AI
- 【redis叢集安裝】Redis
- kafka叢集安裝Kafka
- hbase叢集安裝
- StarRocks 叢集安裝
- cdh 叢集安裝
- ZooKeeper 系列(二)—— Zookeeper單機環境和叢集環境搭建
- Zookeeper 安裝配置
- docker安裝zookeeperDocker
- Zookeeper的安裝