Help Center/ MapReduce Service/ Troubleshooting/ Accessing OBS/ How Do I Change the NTP Server Address of a Cluster Node?
Updated on 2023-09-05 GMT+08:00

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

  1. Log in to the active Master node of the cluster as user root.
  2. 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
    ...

  3. Log in to the standby Master node as the root user and perform step 2.
  4. 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: