ITPub博客

首页 > 大数据 > 数据分析 > CDH5.8.2之Enabling NTP

CDH5.8.2之Enabling NTP

数据分析 作者:40223911 时间:2018-05-02 22:12:20 0 删除 编辑
 

一.问题

CDH requires that you configure the Network Time Protocol (NTP) service on each machine in your cluster.
To start NTP and configure it to run automatically on reboot, perform the following steps on each node in your cluster.

 报错:
 
1)此角色的主机的运行状况为不良。 以下运行状况测试不良:时钟偏差.
  2
)The host’s NTP service is not synchronized to any remote server.

 

二.解决

先配置一台NTP服务,然后所有的CDH节点都作为此NTP服务的客户端。


点击(此处)折叠或打开

  1. 1.安装NTP(集群每台)
  2. [root@sht-sgmhadoopcm-01 ~]#yum install ntp
  3. 2.编辑/etc/ntp.conf(集群每台)
  4. [root@sht-sgmhadoopcm-01 ~]#vi /etc/ntp.conf
  5. server 0.pool.ntp.org
  6. server 1.pool.ntp.org
  7. server 2.pool.ntp.org

  8. 3.配置NTP开机自启动(集群每台)
  9. [root@sht-sgmhadoopcm-01 ~]#chkconfig ntpd on
  10. 4.开启NTP服务(集群每台)
  11. [root@sht-sgmhadoopcm-01 ~]#service ntp start
  12. 5.同步ntp节点(集群每台)
  13. [root@sht-sgmhadoopcm-01 ~]# hostname -i
  14. 172.16.101.54
  15. 选取第一台为ntp服务器
  16. [root@sht-sgmhadoopcm-01 ~]# ntpdate -u 172.16.101.54
  17. 17 Nov 14:31:26 ntpdate[5450]: adjust time server 172.16.101.54 offset -0.000013 sec
  18. 6.同步到系统时间(集群每台)
  19. [root@sht-sgmhadoopcm-01 ~]# hwclock --systohc
 

三.参考

https://www.cloudera.com/documentation/enterprise/5-8-x/topics/install_cdh_enable_ntp.html

http://blog.csdn.net/freedomboy319/article/details/46710255

http://coolnull.com/2735.html


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31451369/viewspace-2153700/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2017-04-10

  • 博文量
    27
  • 访问量
    45127