1. 前言

由于最近搭建的大数据集群多次自动关闭,检查发现是各几点时间不一致导致

 

2. 流程

--在各个节点安装ntp

# yum -y install ntp

 

--所有节点设置时区,中国所用时区为

# timedatectl set-timezone Asia/Shanghai

 

--master节点更改ntp.conf文件,设置server为其自身,再新增restrict表示可接受网段

# vim /etc/ntp.conf

 hbase集群集成ntp时间同步

 

--重启ntp服务

# systemctl restart ntpd

 

--client节点设置ntp服务器ip

# vim /etc/ntp.conf

 hbase集群集成ntp时间同步

 

--每个client节点同步server时间

# ntpdate master 或者 ntpdate 10.10.11.92

 

--每个client节点启动ntpd服务

# systemctl start ntpd

# systemctl enable ntpd

 

--所有节点时间同步

# timedatectl set-ntp yes

相关文章:

  • 2021-06-07
  • 2021-04-05
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
猜你喜欢
  • 2022-12-23
  • 2021-06-30
  • 2021-09-25
  • 2021-09-28
  • 2021-12-12
  • 2021-04-02
  • 2021-11-27
相关资源
相似解决方案