时间同步问题

运行mapreduce时出现一只停在INFO mapreduce.Job: Running job: job_1500000816668_0004

查看日志信息:

[hadoop@master logs]$ vim yarn-hadoop-resourcemanager-localhost.localdomain.log

发现

org.apache.hadoop.yarn.exceptions.ApplicationNotFoundException: Application with id 'application_1499996193981_0002' doesn't exist in RM.

经百度后,发现是master与slave服务器的时间不同步

安装ntp服务

yum install ntp

 

多个datanode与namenode进行时间同步,在每台服务器执行如下两个命令进行同步

    1)输入“cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime”

    2)输入“ntpdate pool.ntp.org”

就解决了

 

posted @ 2017-07-14 11:32  cityinthesky  阅读(465)  评论(0编辑  收藏  举报