Zookeeper 3 4 9 基本配置

2021-07-27 18:22:52 字數 1311 閱讀 6196

[hadoop@master1 ~]$ cat zookeeper/conf/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=/home/hadoop/zookeeper/data

datalogdir=/home/hadoop/zookeeper/log

# the port at which the clients will connect 客戶端與這個埠連線

clientport=2183

# the maximum number of client connections.

# increase this if you need to handle more clients

#maxclientcnxns=60

## be sure to read the maintenance section of the

# administrator guide before turning on autopurge.

## ## 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

server.1=master1:2888:3889

server.2=master2:2888:3889

server.3=master3:2888:3889

linux上zookeeper相關部署配置

1.確保linux上安裝了jdk 2.進入conf中複製zoo sample.cfg命名為zoo.cfg vim zoo.cfg 進入編輯 i ticktime 2000解釋 cs通訊心跳時間,寓意是心跳間隔,單位是毫秒,系統預設是2000毫秒也就是2秒心跳一次,ticktime意義 客戶端與伺服器...

Zookeeper 基本 配置

zookeeper是乙個開源的分布式的,為分布式應用提供協調服務的apache專案 乙個基於觀察者模式設計的分布式服務管理框架 負責儲存和管理大家都關心的資料,然後接受觀察者的註冊資料發生變化,zookeeper負責通知已經在zookeeper上註冊的那些觀察者做出相應的反應 zookeeper 檔...

Ant testng selenium基本配置

ant 配置 1 在工程根目錄下新增 build testng xslt.xml 2 新建lib目錄,新增xml檔案裡的jar包 3 新建res目錄,新增testng results.xsl 檔案 build外掛程式美化報包需要 testng.xml檔案也放置在根目錄 報告目錄,工程 report ...