hadoop错误各种原因

来源:互联网 发布:淘宝西班牙代购真假 编辑:程序博客网 时间:2024/06/05 01:58

  • NoRouteToHostException
  • Check system time and time zones

NoRouteToHostException

错误描述:

 INFO hdfs.DFSClient: Exception in createBlockOutputStreamjava.net.NoRouteToHostException: No route to host

解决办法:是防火墙的问题
关闭systemctl stop firewalld.service(所有集群中的防火墙都要关闭)

Check system time and time zones

错误描述:

Got exception: org.apache.hadoop.yarn.exceptions.YarnException: Unauthorized request to start container. This token is expired. current time is 1468846669832 found 1468814870801Note: System times on machines may be out of sync. Check system time and time zones.

解决办法:

date -s '2016-07-18 12:07:00'

centos7时间设置补充:
查看时间状态:timedatectl
设 置 时 间:timedatectl set-time “YYYY-MM-DD HH:MM:SS”
列 出 时 区:timedatectl list-timezones
设 置 时 区:timedatectl set-timezone Asia/Shanghai
是否NTP服务器同步:timedatectl set-ntp yes
将硬件时钟调整为与本地时钟一致:timedatectl set-local-rtc 1

0 0