分享

java开发hadoop报错误 java.net.UnknownHostException: gv236

desehawk 发表于 2014-5-27 03:11:00 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 3 30486
本帖最后由 desehawk 于 2014-5-27 03:13 编辑


java开发hadoop报错误 java.net.UnknownHostException: gv236,该如何解决


Container launch failed for container_1401088521026_0001_01_000003 : java.lang.IllegalArgumentException: java.net.UnknownHostException: gv236
at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:418)
at org.apache.hadoop.security.SecurityUtil.setTokenService(SecurityUtil.java:397)
at org.apache.hadoop.yarn.util.ConverterUtils.convertFromYarn(ConverterUtils.java:233)
at org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy$ContainerManagementProtocolProxyData.newProxy(ContainerManagementProtocolProxy.java:211)
at org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy$ContainerManagementProtocolProxyData.<init>(ContainerManagementProtocolProxy.java:189)
at org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy.getProxy(ContainerManagementProtocolProxy.java:110)
at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl.getCMProxy(ContainerLauncherImpl.java:403)
at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$Container.launch(ContainerLauncherImpl.java:138)
at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$EventProcessor.run(ContainerLauncherImpl.java:369)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.UnknownHostException: gv236
... 12 more


已有(3)人评论

跳转到指定楼层
nettman 发表于 2014-5-27 03:11:49
hostname错误,看看是不是配置错误
回复

使用道具 举报

desehawk 发表于 2014-5-27 03:12:47
给帮忙看一下
QQ图片20140527031202.jpg
回复

使用道具 举报

nettman 发表于 2014-5-27 03:14:40
hostname没有映射,改成下面形式

ip地址  hostname
比如:
192.168.1.120  master
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条