Help Center/ MapReduce Service/ Troubleshooting/ Cluster Management/ MRS Cluster Becomes Abnormal After the Hostname of a Node Is Changed
Updated on 2024-12-18 GMT+08:00
MRS Cluster Becomes Abnormal After the Hostname of a Node Is Changed
Symptom
After the hostname of a node is changed, the MRS cluster becomes abnormal.
Cause Analysis
Changing the hostname causes compatibility problems and faults.
Procedure
- Log in to any node in the cluster as user root.
- Run the cat /etc/hosts command on the node to check the value of hostname of each node and set the newhostname variable based on the value.
- Run the sudo hostnamectl set-hostname ${newhostname} command on the node where hostname is changed to restore the correct hostname.
${newhostname}: new value of hostname
- Log in to the node where hostname is changed, and check whether the new hostname takes effect.
Parent topic: Cluster Management
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.