大数据集群时间同步解决方案

大数据集群搭建时,集群无法启动时,可能是时间不同步,内网环境下,可以采用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

更多Linux下配置rdate时间服务器的方法

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值