Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install zookeeper3.3.6

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install zookeeper3.3.6. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Download: zookeeper-3.3.6.tar.gz

Decompress and throw it into / opt directory

[~] $cd / opt/zookeeper-3.3.6/conf [conf] $mv zoo_sample.cfg zoo.cfg [conf] $vi zoo.cfg# The number of milliseconds of each ticktickTime=2000# The number of ticks that the initial # synchronization phase can takeinitLimit=10# The number of ticks that can pass between # sending a request and getting an acknowledgementsyncLimit=5# the directory where the snapshot is stored.dataDir=/opt/zookeeper-3.3.6/tmp/data# log location dataLogDir=/opt/zookeeper-3.3.6/tmp/logs # the port at which the clients will connectclientPort=2181# starts at 3.4.0 Zookeeper provides the function of automatically cleaning snapshot and transaction logs. The frequency of autopurge.purgeInterval=1 / / is small. Default is 0, which means the number of files retained by autopurge.snapRetainCount=1 / / is not cleaned. Default is 3server.1=172-25-3-27:2888:3888cd / opt/zookeeper-3.3.6/tmp/datavi myid1.

If this step is not added, the outage of the network will cause the zookepper service to exit abnormally in the case of distribution.

QuorumPeerMain

Start

Cd.. / bin./zkServer.sh start

Stop it

. / zkServer.sh stop

View zookeeper status

. / zkServer.sh status

Zookeeper client operation command

. / zkCli.sh-server 192.168.0.102 zk 2181 (CONNECTED) 0] ls / create / zk "myData" get / zkset / zk "zsl" delete / zkcreate / zk/node1 "node1" ls / zk thank you for reading! This is the end of the article on "how to install zookeeper3.3.6". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report