真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

ubuntu16.04系統(tǒng)中怎么安裝zookeeper

這篇文章給大家介紹ubuntu16.04系統(tǒng)中怎么安裝zookeeper,內(nèi)容非常詳細,感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。

創(chuàng)新互聯(lián)專業(yè)為企業(yè)提供尉犁網(wǎng)站建設(shè)、尉犁做網(wǎng)站、尉犁網(wǎng)站設(shè)計、尉犁網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計與制作、尉犁企業(yè)網(wǎng)站模板建站服務(wù),十載尉犁做網(wǎng)站經(jīng)驗,不只是建網(wǎng)站,更提供有價值的思路和整體網(wǎng)絡(luò)服務(wù)。

zookeeper需要java,見https://my.oschina.net/u/914655/blog/3102583 

cd /app
wget http://mirror-hk.koddos.net/apache/zookeeper/zookeeper-3.5.5/apache-zookeeper-3.5.5-bin.tar.gz
tar zxvf apache-zookeeper-3.5.5-bin.tar.gz
mv apache-zookeeper-3.5.5-bin zookeeper
cp conf/zoo.sample.cfg conf/zoo.cfg
vim conf/zoo.cfg
mkdir data
vim data/myid
echo 1 > data/myid # 這個確保和下面的server.x后面的數(shù)字對應(yīng)

vim /etc/hosts

# /etc/hosts
# 自定義Hosts
10.13.6.1     kafka-node1
10.13.6.2     kafka-node2
10.13.6.3     kafka-node3

zoo.cfg

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/app/zookeeper/data
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
maxClientCnxns=60

# 節(jié)點配置信息
server.1=kafka-node1:2888:3888
server.2=kafka-node2:2888:3888
server.3=kafka-node3:2888:3888

#server.A=B:C:D
# 其中 A 是一個數(shù)字,表示這個是第幾號服務(wù)器;
# B 是這個服務(wù)器的 ip 地址;
# C 表示的是這個服務(wù)器與集群中的 Leader 服務(wù)器交換信息的端口;
# D 表示的是如果集群中的 Leader 服務(wù)器故障,需要一個端口來重新進行選舉,選出一個新的 Leader,而這個端口就是#用來執(zhí)行選舉時服務(wù)器相互通信的端口。
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1

關(guān)于ubuntu16.04系統(tǒng)中怎么安裝zookeeper就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學(xué)到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。


分享題目:ubuntu16.04系統(tǒng)中怎么安裝zookeeper
路徑分享:http://weahome.cn/article/jjicgc.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部