公告:    欢迎来到王者★孤傲博客主页,若有问题敬请留言 !     没有大量的积累和感悟,是不会把事情做好的, 只有不停的进取,才能够不丢人! Copyright © 2016-2020 RaodiBlogs. All rights reserved.

CDH集群的时间同步--简要配置要求



        每个节点执行ntpstat 和 timedatectl 都显示同步并且时间相同,那么CDH才能正常使用。每次ntp服务同步到外部授时中心都要一段时间(5~10分钟),只有当NTP server(node1)节点和其他的NTP client(node2、node3)节点都显示同步成功之后,CM页面中的每台机器才不会报错。可通过timedatectl查看到当前节点是否同步成功:如果显示 NTP enabled: yes 和 NTP synchronized: yes 才表示成功。

    必须保证MySQL启动了,才能正常启动Cloudera Manager Server:service mysql start 和 service mysql status

------CM主节点:------

启动Cloudera Manager Server,一般机器启动时,Cloudera Manager Server便会自动启动,因此无需手动启动

systemctl start cloudera-scm-server 启动之后需要一段时间才能完全整个启动(一般一分钟之内),才可以访问到 192.168.88.100:7180/cmf/login

systemctl stop cloudera-scm-server 建议每次关机之前都先停止 cloudera-scm-server,要么就挂起

systemctl restart cloudera-scm-server

systemctl status cloudera-scm-server

1.ps -ef | grep cloudera-scm-server 查看是否启动

2.systemctl status cloudera-scm-server 查看启动状态,启动正常显示 Active: active (running)

3.cloudera-scm-server 默认使用的端口 7180,那么就可以通过 192.168.88.100:7180/cmf/login 访问 CM

4.netstat -lnpt | grep 7180 只要被使用时才能访问到 192.168.88.100:7180/cmf/login

正常显示 tcp 0 0 0.0.0.0:7180 0.0.0.0:* LISTEN 68289/java


----授时子节点的时间节点同步----

1.ntpdate -u ntp6.aliyun.com 同步阿里云时间

2.timedatectl 查看当前时间和NTP服务的同步状态,需要显示为 NTP enabled: yes 和 NTP synchronized: yes 才表示各机器之间的时间服务NTP完全同步

3.如果显示 NTP enabled: no那么 启动服务 systemctl start ntpd,查看是否启动 ps -ef | grep ntpd

4.执行ntpstat每个节点时间服务NTP的同步情况,主节点显示synchronised to NTP server (xxx.xxx.xxx.xxx)表示成功同步外部的授时中心

其他子节点显示synchronised to NTP server (主节点IP)表示其他子节点同步主节点的时间,如果显示unsynchronised表示没有同步成功,这时可选择systemctl restart ntpd

5.注意:ntpd服务启动后,主节点一般需要1~5分钟才能同步上外部的授时中心,其他子节点同样可能需要1~5分钟才同步上主节点时钟

posted @ 2019-09-04 18:17  王者★孤傲  阅读(2463)  评论(0编辑  收藏  举报
……