The host's NTP service was not synchronized to any remote server.
The health of this role's host was bad. The following health tests were bad: clock offset
ERROR: Can't get master address from ZooKeeper; znode data == null
应该是因为我这个vm没法联网的问题
修改ntp配置文件 /etc/ntp.conf
添加
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
重启ntp服务器
sudo service ntpd restart
测试ntp配置
[cloudera@quickstart Desktop]$ ntpq -np
remote refid st t when poll reach delay offset jitter
==============================================================================
*127.127.1.0 .LOCL. 10 l 9 64 377 0.000 0.000 0.000
可能还会出现
Internal error while querying the Service Monitor
Internal error while querying the Host Monitor
重启这两个Monitor
重启虚拟机
本文详细介绍了如何解决因VM无法联网导致的NTP服务不同步问题。通过修改ntp配置文件,添加本地时钟服务器,并重启ntp服务,最终实现了时钟同步。此外,还解决了因ZooKeeper无法获取主地址引发的相关错误。
1644

被折叠的 条评论
为什么被折叠?



