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

Zookeeper deployment

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

Share

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

ZooKeeper is a distributed, open source distributed application coordination service, an open source implementation of Google's Chubby, and an important component of Hadoop and Hbase. It is a software that provides consistency services for distributed applications, including configuration maintenance, domain name services, distributed synchronization, group services and so on.

one。 Log in to H2 as hadoop user

Decompress tar xvf zookeeper-3.4.5.tar.gz mv zookeeper-3.4.5 zookeeper

Create a new folder: mkdir-p temp/zookeeper

Add the file myid and add the following to it: 1

Create a new zookeeper/conf/zoo.cfg file:

Touch zookeeper/conf/zoo.cfg

Modify the zookeeper/conf/zoo.cfg to read as follows:

TickTime=2000

InitLimit=10

SyncLimit=5

DataDir=temp/zookeeper

ClientPort=2181

Server.1=h2:2888:3888

Server.2=h3:2888:3888

Server.3=h4:2888:3888

Distribute the zookeeper to the remaining two nodes:

Scp-r zookeeper h3purl /

Scp-r zookeeper h4purse /

two。 Log in to h3 as hadoop user

Create a new folder: mkdir-p temp/zookeeper

Add the file myid and add the following to it: 2

three。 Log in to h4 as hadoop user

Create a new folder: mkdir-p temp/zookeeper

Add the file myid and add the following to it: 3

four。 Log in to H2 as hadoop user

Execute the following command to start the Zookeeper cluster:

Ssh h3 / home/hadoop/zookeeper/bin/zkServer.sh start

Ssh h4 / home/hadoop/zookeeper/bin/zkServer.sh start

five。 Execute / home/hadoop/zookeeper/bin/zkServer.sh status to check the cluster status

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