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 migrate Zookeeper services through CM

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article focuses on "how to migrate Zookeeper services through CM". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to migrate Zookeeper services through CM.

1. Environment

Test environment

Version 5.14.2 for 1.CM5.15.0 and CDH

two。 Migration preparation

First of all, confirm the target server of the Zookeeper service migration. The test environment of Fayson shows that the Zookeeper service is on cdh01, cdh02 and cdh03 nodes. Here, the Zookeeper service of the cdh01 node is migrated to the cdh04 node.

The deployment of Zookeeper services before migration is as follows:

Before migration, you need to make sure that the target server is managed by Cloudera Manager, and the cdh04 node is already in the Fayson cluster. How to add nodes to the cluster is no longer described here. You can refer to the previous articles of Fayson, "how to expand data nodes online for CDH clusters in Kerberos environment", "how to expand CDH in non-Kerberos environments", and "how to expand Redhat6 nodes in Redhat7 CDH clusters".

3.Zookeeper service migration

1. Log in to Cloudera Manager using the administrator to enter the list of instances of the Zookeeper service

two。 Select the Zookeeper service for the cdh01.fayson.com node and stop

Remove the Zookeeper service from the cdh01.fayson.com node

3. Click "add role instance" and select the cdh04.fayson.com node

4. Click continue to use the same data directory as other Zookeeper service configurations

5. Click finish to add the Zookeeper service to the cdh04.fayson.com node

6. Click on the newly added Zookeeper service, go to the status page of the service, and click "start Service"

After starting successfully, go back to the Zookeeper instance list interface and restart the ZK service of the cdh02 and cdh03 nodes.

Note: restart the ZK service of the cdh02 and cdh03 nodes one by one, and ensure that the ZK service is normal before you proceed to the next one.

7. All ZK services are restarted as shown in the following figure

The Leader of the ZK service is normal

After the 8.ZK service migration is successful, you need to redeploy the client configuration of the cluster and restart the related services

4. Summary

1. In the process of Zookeeper service migration, in order to prevent data loss, the data directory of Zookeeper needs to be backed up. This step is not done in the operation document of Fayson, so you need to pay attention to it when migrating.

The migration of 2.ZK service is to stop and delete the ZK service of the node to be migrated and add a ZK service to the new node. Do not prevent data loss when starting or restarting the service, restart one node at a time, and ensure that the service starts successfully and restarts the next node after a normal election.

At this point, I believe you have a deeper understanding of "how to migrate Zookeeper services through CM". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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