On this page

Show all

Help Center/ MapReduce Service/ FAQs/ Cluster Management/ How Do I Do If the Time on MRS Nodes Is Incorrect?

How Do I Do If the Time on MRS Nodes Is Incorrect?

Updated on 2022-12-12 GMT+08:00
  • If the time on a node inside the cluster is incorrect, log in to the node and rectify the fault from 2.
  • If the time on a node inside the cluster is different from that on a node outside the cluster, log in to the node and rectify the fault from 1.
  1. Run the vi /etc/ntp.conf command to edit the NTP client configuration file, add the IP addresses of the master node in the MRS cluster, and comment out the IP address of other servers.
    server master1_ip prefer
    server master2_ip 
    Figure 1 Adding the master node IP addresses
  2. Run the service ntpd stop command to stop the NTP service.
  3. Run the /usr/sbin/ntpdate IP address of the active master node command to manually synchronize time.
  4. Run the service ntpd start or systemctl restart ntpd command to start the NTP service.
  5. Run the ntpstat command to check the time synchronization result:
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback