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 zookeeper in ubuntu16.04 system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article introduces how to install zookeeper in ubuntu16.04 system. The content is very detailed. Interested friends can refer to it for reference. I hope it can help you.

zookeeper requires java, see my.oschina.net/u/914655/blog/3102583

cd /appwget http://mirror-hk.koddos.net/apache/zookeeper/zookeeper-3.5.5/apache-zookeeper-3.5.5-bin.tar.gztar zxvf apache-zookeeper-3.5.5-bin.tar.gzmv apache-zookeeper-3.5.5-bin zookeeper conf/zoo.sample.cfg conf/zoo.cfgvim conf/zoo.cfgmkdir datavim data/myidecho1> data/myid #This ensures that the number following server.x corresponds to vim /etc/hosts# /etc/hosts#Custom Hosts10.13.6.1 kafka-node110.13.6.2 kafka-node210.13.6.3 kafka-node3

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.# do not use /tmp for storage, /tmp here is just# example sakes.dataDir=/app/zookeeper/data# the port at which the clients will connectclientPort=2181# the maximum number of client connections.# increase this if you need to handle more clientsmaxClientCnxns=60#node configuration information server.1=kafka-node1:2888:3888server.2=kafka-node2:2888: 3888server.3=kafka-node3:2888:3888#server.A=B:C:D#where A is a number indicating which server this is;# B is the IP address of this server;# C indicates the port on which this server exchanges information with the Leader server in the cluster;# D indicates that if the Leader server in the cluster fails, a port is needed to re-elect and select a new Leader, and this port is #used to communicate with each other during the election.## 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 About ubuntu16.04 system how to install zookeeper to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

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

Internet Technology

Wechat

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

12
Report