How Do I Change the NTP Server Address of a Cluster Node?
Issue
How do I change the NTP server address of a cluster node?
Symptom
A 403 error is reported when the cluster accesses OBS.
Cause Analysis
The NTP time of the master node in the cluster is not synchronized with the NTP server time of the nodes outside the cluster. The time difference exceeds 15 minutes. As a result, the authentication fails when the cluster accesses OBS and error 403 is reported.
Procedure
- Log in to the active Master node of the cluster as user root.
- Add ntp.myhuaweicloud.com, before the value of ntp_server_ip in the ${BIGDATA_HOME}/om-server/om/inst/conf/oms-config.ini and ${BIGDATA_HOME}/om-server/OMS/workspace0/conf/oms-config.ini files.
... ntp_server_ip=ntp.myhuaweicloud.com,10.127.1.0 ...
- Log in to the standby Master node as the root user and perform step 2.
- Wait for about 2 minutes and run the following command on the active Master node to check whether the IP address is successfully synchronized:
ntpq -np
For example, the command output is as follows:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.