我有12个Ubuntu服务器14.04节点的Hadoop集群。 我的问题是在一些包括namenode的服务器上,时间跳转到2036-02-07几分钟,然后变回,导致Hadoop datanode死亡。 我安装了ntp进行时间同步,但ntp的最小同步间隔为8秒,这对我来说仍然是一个问题,因为Hadoop心跳间隔为3秒。 请注意,所有服务器中的时区都是相同的。 我曾经在一个地方看过,当操作系统无法读取硬件时钟的时候会发生这种情况,我该如何检查它是否属实?
任何关于这个时间的原因有什么改变,我怎么能阻止呢?
NTP运行为
ntpd -p /var/run/ntpd.pid -g -u 109:118
这是我的ntp.conf文件:
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help driftfile /var/lib/ntp/ntp.drift statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable # Specify one or more NTP servers. # Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board # on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for # more information. server 0.ubuntu.pool.ntp.org server 1.ubuntu.pool.ntp.org server 2.ubuntu.pool.ntp.org server 3.ubuntu.pool.ntp.org # Use Ubuntu's ntp server as a fallback. server ntp.ubuntu.com # By default, exchange time with everybody, but don't allow configuration. restrict -4 default kod notrap nomodify nopeer noquery restrict -6 default kod notrap nomodify nopeer noquery # Local users may interrogate the ntp server more closely. restrict 127.0.0.1 restrict ::1 # set minimum sync interval to 2^3 (8) and max to 2^5 minpoll 3 maxpoll 5