Help Center> MapReduce Service> Troubleshooting> Storage-Compute Decoupling> An MRS Cluster Fails Authentication When Accessing OBS Because the NTP Time of Cluster Nodes Is Not Synchronized
Updated on 2024-05-28 GMT+08:00

An MRS Cluster Fails Authentication When Accessing OBS Because the NTP Time of Cluster Nodes Is Not Synchronized

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. Modify the ${BIGDATA_HOME}/om-server/om/inst/conf/oms-config.ini and ${BIGDATA_HOME}/om-server/OMS/workspace0/conf/oms-config.ini configuration files, add ntp.myhuaweicloud.com before the value of ntp_server_ip.

    ...
    ntp_server_ip=ntp.myhuaweicloud.com,10.127.1.0
    ...

  3. Log in to the standby master node of the cluster as user root and go to 2.
  4. Wait about 2 minutes and run the following command on the active master node to check whether the IP address is successfully synchronized:

    ntpq -np

    The command output is as follows.