hadoop错误各种原因

NoRouteToHostException

错误描述:

 INFO hdfs.DFSClient: Exception in createBlockOutputStream
java.net.NoRouteToHostException: No route to host
  • 1
  • 2
  • 3

解决办法:是防火墙的问题 
关闭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 1468814870801
Note: System times on machines may be out of sync. Check system time and time zones.
  • 1
  • 2
  • 3
  • 4

解决办法:

date -s '2016-07-18 12:07:00'
  • 1
  • 2

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

posted @ 2018-05-31 16:57  人情世故  阅读(180)  评论(0编辑  收藏  举报
"不管做什么,只要坚持下去就会看到不一样!在路上,不卑不亢!"