Summary of frequently asked questions at work: ntp synchronization
A problem was found today. There was an error in centos7 synchronization time.
[root@hadoop2 cm-5.8.3] # ntpdate pool.ntp.org 9 Dec 04:53:19 ntpdate [63834]: the NTP socket is in use, exiting
The reason is that he has already started the ntp service. After I turn him off here, the resynchronization will be normal.
[root@hadoop2 cm-5.8.3] # systemctl stop ntpd.service [root@hadoop2 cm-5.8.3] # ntpdate pool.ntp.org 8 Dec 20:54:18 ntpdate [63943]: step time server 120.25.108.11 offset-28795.548308 sec [root@hadoop2 cm-5.8.3] # dateThu Dec 8 20:54:20 EST 2016 [root@hadoop2 cm-5.8.3] # systemctl disable ntpd.service # turn off boot