CDH5.8.2之Enabling NTP

简介:   一.问题 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)此角色的主机的运行状况为不良。
 

.问题

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


目录
相关文章
|
Ubuntu 关系型数据库 MySQL
How to Install and Configure Icinga2 Monitoring Tool on Ubuntu 16.04
In this tutorial, we will explore how to install Docker on Alibaba Cloud and learn some important Docker commands to help you deploy and manage your container services.
3004 0
How to Install and Configure Icinga2 Monitoring Tool on Ubuntu 16.04
|
Ubuntu
ubuntu Emergency Mode
1 sudo fsck -y /dev/sda# 1 e2fsck -f -y -v -C 0 /dev/sda#
1142 0
|
开发工具
|
开发工具
|
关系型数据库 MySQL 数据安全/隐私保护