Modify the cdh cluster ip address (mysql)

A batch of machines newly purchased by the company need to be moved to a third-party computer room after the company has installed the environment, and the IP address needs to be changed after arriving in the computer room, so I checked the relevant information on Baidu, and referred to a successful blog.

1. First close the cdh cluster and cloudera manager service.

2. Stop cloudera-scm-server.service and cloudera-scm-agent.service

systemctl stop cloudera-scm-server.service

systemctl stop cloudera-scm-server-db.service

All agents are to be stopped.


1.1 Login to mysql

mysql -u root -p

Enter password: 123456

1.2 Select the database

use cm;

1.3 View table information

select NAME,IP_ADDRESS,HOST_IDENTIFIER from HOSTS;

Modify information:

The next steps are the same as the postgresql above.

Operations under the postgresql database. https://my.oschina.net/u/3197158/blog/1786890

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325305565&siteId=291194637