大数据集群搭建时,集群无法启动时,可能是时间不同步,内网环境下,可以采用rdate命令更新时间,
问题 :集群无法启动
日志中查看到错误:
Server mini2,16020,1508608510960 has been rejected; Reported time is too far out of sync with master. Time difference of 428987358ms > max allowed of 180000ms
解决
[root@mztt bin]# ntpdate
-bash: ntpdate: command not found
[root@mztt bin]# yum install ntp
[root@mztt bin]# ntpdate
30 Oct 06:21:25 ntpdate[10542]: no servers can be used, exiting
[root@mztt bin]# ntpdate -u ntp.api.bz
27 Sep 19:33:39 ntpdate[7185]: no server suitable for synchronization found
它说没有server,我们配置时间服务器:
[root@mztt bin]# yum install -y rdate
#安装完毕后
[root@mztt bin]# rdate -s time-b.nist.gov
[root@mztt bin]# date
2018年 09月 27日 星期四 19:39:54 CST