时间同步问题

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

查看日志信息:

[[email protected] 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”

就解决了

时间: 2024-08-06 18:01:20

时间同步问题的相关文章

关于ntp时间同步理论及配置参数-20170804

[原创]关于ntp时间同步理论及配置参数20170804 前言 NTP(Network Time Protocol,网络时间协议)是用来使网络中的各个计算机时间同步的一种协议.无论是平时使用的私人计算机还是在工作中搭建的服务器集群,时间的统一性和准确性是十分重要的.它是用来同步网络中各个计算机的时间的协议. 在计算机的世界里,时间非常地重要,例如对于火箭发射这种科研活动,对时间的统一性和准确性要求就非常地高,是按照A这台计算机的时间,还是按照B这台计算机的时间?NTP就是用来解决这个问题的,NT

NTP服务及时间同步(CentOS6.x)(转载)

今有一小型项目,完全自主弄,原来以为很简单的NTP服务,我给折腾了2个多小时才整撑头(以前都是运维搞,没太注意,所以这技术的东西,在简单都需要亲尝啊),这里记录为以后别再浪费时间. 目标环境,5台linux centos 6.3, 一台作为NTPD服务与外部公共NTP服务同步时间,同时作为内网的NTPD服务器,其他机器与这台服务做时间同步.  服务器IP 角色   说明 同步方式  192.168.1.135   NTPD服务 1.负责与外部公共NTPD服务同步标准时间 2.作为内外网络的NTP

自动调整linux系统时间和时区与Internet时间同步

调整linux系统时间和时区与Internet时间同步 一.修改时区:# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime修改为中国的东八区# vi /etc/sysconfig/clockZONE="Asia/Shanghai"UTC=falseARC=false 二.配置新的时间日期设定:# date -s 2008/05/06 时间设定:# date -s 18:40:00 查看硬件时间(BIOS的):    hwclock

Linux时间同步命令

一. 使用ntpdate 命令 1.1 服务器可链接外网时 # crontab -e 加入一行: */1 * * * * ntpdate 210.72.145.44 210.72.145.44 为中国国家授时中心服务器地址,这样该机每隔1分重就可以与国家授时中心进行同步了. 注意: 在使用ntpdate 命令时, ntpd 服务必须是关闭的, 否则会报the NTP socket is in use, exiting 错误. 关闭 ntpd 服务命令如下: [[email protected] 

ntpd (linux时间同步)

开发板使用ntpdate 进行网络时间同步 用法 ntpdate  ip    出现如下错误 ntpdate -u ip Error resolving ai_socktype: Servname not supported for ai_socktype (-8) 1 Jan 01:44:12 ntpdate[742]: Can't find host ai_socktype: Servname not supported for ai_socktype (-8) 1 Jan 01:44:12

linux云自动化运维基础知识10(日志同步和时间同步)

####1.系统日志默认分类#### /var/log/messages    ##系统服务及日志,包括服务的信息,报错等等/var/log/secure        ##系统认证信息日志/var/log/maillog    ##系统邮件服务信息/var/log/cron        ##系统定时任务信息/var/log/boot.log    ##系统启动信息 ####2.日志管理服务rsyslog#### 1.rsyslog负责采集日志和分类存放日志2.rsyslog日志分类vim /

ntp时间同步服务配置

好久没有配置过ntp时间同步了,记录一下,记性不好 首先安装ntp.ntpdate服务 备份配置文件,并做修改 mv  /etc/ntp.conf  /etc/ntp.conf.bak vim  /etc/ntp.conf 将"restrict default kod nomodify notrap nopeer noquery"修改为"restrict  default  nomodify"允许任何的IP进行时间同步 启动ntp时间同步服务器 service  n

Linux时间同步

####时间同步#### 1.服务端yum install chrony -y   ##安装服务 vim /etc/chrony.conf    ##主配置文件21 # Allow NTP client access from local network.22 allow 172.25.0.0/24  ##允许谁去同步我的时间27 # Serve time even if not synchronized to any NTP server.28 local stratum 10 ##不去同步任

ntp时间同步

m61管理机  服务端配置 查看是否安装看ntp rpm -qa ntp 若没有  yum -y install ntp 配置ntp服务 vim /etc/ntp.conf 8 #restrict default kod nomodify notrap nopeer noquery #<==第八行注释掉,在第八行下加上一行. 9 restrict default nomodify #<==允许所有IP段 19 #restrict 192.168.1.0 mask 255.255.255.0 n

Linux:时间同步

时间同步 硬件时间的设置 hwclock clock clock和hwclock用法相近,只用一个就行,只不过clock命令除了支持x86硬件体系外,还支持Alpha硬件体系. 查看硬件时间 hwclock hwclock --show hwclock -r 系统时间和硬件时间的同步 同步系统时间和硬件时间,可以使用hwclock命令. 以系统时间为基准,修改硬件时间 hwclock --systohc<== sys(系统时间)to(写到)hc(Hard Clock) hwclock -w 以硬