7,数据挖掘环境搭建-ntp服务

ntp服务搭建
Spark集群分为Master,Worker。默认Worker每15秒向Master发一条心跳包。所以,Spark集群时间必须同步。

0,准备工作
关闭selinux,关闭防火墙

服务器配置
1,安装ntp服务

yum install -y ntp ntpdate

2,修改配置文件

vi /etc/ntp.conf 
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
server 192.168.10.30 iburst

本机时间与 192.168.10.30 机时间同步,可能会有1~2秒的误差

4,启动ntp服务

service ntpd start
chkconfig ntpd on

猜你喜欢

转载自blog.csdn.net/luolinll1212/article/details/78490894
今日推荐