首先:執行ntpstat,實時命令查看狀態,結果發現所有服務器的狀態都是未同步狀態“unsynchronised”:
然后,重啟ntp服務、手動時間同步、再重啟服務(全部機器執行):
systemctl stop ntpd
sudo ntpd -gq
systemctl start ntpd
最后,執行timedatectl,查看服務器時間狀態,發現NTP synchronized為true,說明時間同步成功了。並且各個節點與master之間的時間都保持一致了:
最最后,每台機器重啟 CM agent
systemctl restart cloudera-scm-agent