1 没有安装ntp同步服务

 所有机器统一时区,确认所有机器配置一致

   vim /etc/sysconfig/clock

CDH安装报错 Monitor-HostMonitor throttling_logger ERROR    ntpq: ntpq -np: not synchronized to any server

 

  

  ntp服务器配置

 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
 yum install -y ntpdate
  cp /etc/ntp.conf /etc/ntp.conf.bak
  cp /etc/sysconfig/ntpd /etc/sysconfig/ntpd.bak
  echo "restrict 172.24.8.0 mask 255.255.255.0 nomodify notrap" >> /etc/ntp.conf
  echo "SYNC_HWCLOCK=yes" >> /etc/sysconfig/ntpd
  service ntpd restart

  

另外机器配置,设置成自己的ntp服务器ip

 crontab -e
*/30 * * * * /usr/sbin/ntpdate 172.16.8.138

  

相关文章:

  • 2021-10-02
  • 2021-10-18
  • 2021-08-13
  • 2021-12-10
  • 2021-11-28
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-22
  • 2021-07-11
  • 2021-12-27
  • 2022-12-23
  • 2021-06-12
  • 2021-03-28
相关资源
相似解决方案