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

时间:2023-03-08 19:44:53

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