YarnException:未经授权的请求启动容器 [英] YarnException: Unauthorized request to start container

查看:333
本文介绍了YarnException:未经授权的请求启动容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在3个集群上设置了hadoop2.2.0。一切都很顺利。 NodeManager和Datanode在每个集群中启动。但是,当我运行wordcount示例时,会发生100%的映射,并提供以下异常:

  map 100%reduce 0%
13/11/28 09:57:15信息mapreduce.Job:任务ID:attempt_1385611768688_0001_r_000000_0,状态:FAILED
container_1385611768688_0001_01_000003的容器启动失败:org.apache.hadoop.yarn.exceptions。
YarnException:未经授权的请求启动容器。
此令牌已过期。当前时间为1385612996018找到1385612533275
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

我已经通过互联网找出解决方案。但我找不到。帮帮我。 当您的节点具有不同的时间设置时,会发生此异常。
确保所有3个节点都有相同的时间n个时区设置,然后重新启动计算机。



这对我很有用。希望这对你有帮助!

I have set up hadoop2.2.0 on 3 clusters. Everything is going fine. NodeManager and Datanode are started in each clusters. But, when I run wordcount example, 100% mapping takes place and it gives following exception:

map 100% reduce 0%
13/11/28 09:57:15 INFO mapreduce.Job: Task Id : attempt_1385611768688_0001_r_000000_0, Status : FAILED
Container launch failed for container_1385611768688_0001_01_000003 : org.apache.hadoop.yarn.exceptions.
YarnException: Unauthorized request to start container.
This token is expired. current time is 1385612996018 found 1385612533275
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

I have gone through internet to find out solution. But I couldn't find out. Help me out.

解决方案

This exception occurs when your nodes have different time settings. Make sure that your all 3 nodes have same time n timezone settings and then restart computer.

This worked for me . Hope this help to you as well !!!!

这篇关于YarnException:未经授权的请求启动容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆