如:本地有3台服务器需要时间同步分别是hadoop01,hadoop02,hadoop03

1,安装ntp服务器(每台到需要安装)

yum install ntp -y


2,在hadoop01做如下设置

vi /etc/ntp.conf
添加如下:
server 127.127.1.0

fudge 127.127.1.0 stratum 10


systemctl restart ntpd

chkconfig ntpd on

3,其它节点

ntpdate hadoop01

出现如下则时间同步成功


chkconfig ntpd on


Logo

更多推荐