每天一点hadoop 第十一篇 (时间同步)
2015-05-07 11:17
204 查看
在centos集群中进行spark部署时,无法启动从节点主要就是时间超时
对时间进行同步:
1. 安装 ntp :yum intall ntp
2. 修改配置文件:vi /etc/ntp.conf
server127.127.1.0 minpoll 4 maxpoll 5
fudge 127.127.1.0 stratum 2
3. 重启服务:service ntpd restart
再运行
root@monitor:/etc#ntpdate -q 127.0.0.1
得到
server127.0.0.1, stratum 3, offset -0.000003, delay 0.02565
23 Sep 17:12:00ntpdate[11502]: adjust time server 127.0.0.1 offset -0.000003 s
4.将其他节点的时间与 hadoopmaster同步
配置从节点:
driftfile/var/lib/ntp/drift
restrict127.0.0.1
restrict -6 ::1
restrictdefault kod nomodify notrap nopeer noquery
restrict -6default kod nomodify notrap nopeer noquery #这里是主节点的主机名或者ip server n1 includefile /etc/ntp/crypto/pw
keys/etc/ntp/keys
在其他每一个节点运行命令
ntpdate –u hadoopmaster
启动服务:serviece ntpd start
参考:/content/5975183.html
http://jerrylead.iteye.com/blog/1179492 http://www.aboutyun.com/thread-11395-1-1.html
对时间进行同步:
1. 安装 ntp :yum intall ntp
2. 修改配置文件:vi /etc/ntp.conf
server127.127.1.0 minpoll 4 maxpoll 5
fudge 127.127.1.0 stratum 2
3. 重启服务:service ntpd restart
再运行
root@monitor:/etc#ntpdate -q 127.0.0.1
得到
server127.0.0.1, stratum 3, offset -0.000003, delay 0.02565
23 Sep 17:12:00ntpdate[11502]: adjust time server 127.0.0.1 offset -0.000003 s
4.将其他节点的时间与 hadoopmaster同步
配置从节点:
driftfile/var/lib/ntp/drift
restrict127.0.0.1
restrict -6 ::1
restrictdefault kod nomodify notrap nopeer noquery
restrict -6default kod nomodify notrap nopeer noquery #这里是主节点的主机名或者ip server n1 includefile /etc/ntp/crypto/pw
keys/etc/ntp/keys
在其他每一个节点运行命令
ntpdate –u hadoopmaster
启动服务:serviece ntpd start
参考:/content/5975183.html
http://jerrylead.iteye.com/blog/1179492 http://www.aboutyun.com/thread-11395-1-1.html
相关文章推荐
- 每天一点hadoop 第十一篇 HDFS(七)
- 每天一点小基础---smarty中将时间戳转换为时间
- Hadoop技巧(02):时间同步
- linux hadoop本地集群时间同步
- 每天一点hadoop 第八章 HDFS (四)
- 每天一点hadoop 第一篇(hadoop简介)
- 每天一点hadoop第六篇(搭建伪分布)
- Linux每天一点修改文件时间或创建新文件
- 头段时间研究了一下 分布式计算Hadoop 的源码的一点随想
- 每天学一点flash(2) 利用时间函数来对flash文件进行简单加密
- 解决 Windows instance 时间不同步问题 - 每天5分钟玩转 OpenStack(153)
- 打发时间的题目,每天做一点
- hadoop集群中的时间同步
- 联网同步时间,每天早8点
- 每天学一点flash(2) 利用时间函数来对flash文件进行简单加密
- hadoop集群时间同步
- Cloudera 建议使用 NTP 使 Hadoop 群集实现时间同步
- hadoop招聘需求每天都在添加,短短半个月时间,需求量差点儿翻了一番,这是大数据要爆发的节奏么?
- 每天一点hadoop第五篇(hadoop2.6.0 编译)