Yarn容器启动失败

p8ekf7hl  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(495)

我无法在配置单元上运行查询。仅在启动map reduce操作(map 0%reduce 0%)后查询失败。在nodemanager日志中发现以下错误。

2017-03-16 11:53:03,581 ERROR [ContainerLauncher #0] org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl: Container launch failed for container_1489041811986_0005_01_000002 : java.lang.IllegalArgumentException: Does not contain a valid host:port authority: slave_1:60805
    at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:213)
    at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:164)
    at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:153)
    at org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy$ContainerManagementProtocolProxyData.newProxy(ContainerManagementProtocolProxy.java:258)
    at org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy$ContainerManagementProtocolProxyData.<init>(ContainerManagementProtocolProxy.java:244)
    at org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy.getProxy(ContainerManagementProtocolProxy.java:129)
    at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl.getCMProxy(ContainerLauncherImpl.java:409)
    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:375)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

我猜它无法将主机名slave\u1Map到它的ip。任何帮助都将不胜感激。谢谢。

gmxoilav

gmxoilav1#

我得到了同样的错误,并用以下步骤解决了几天:
打开/etc/hosts文件;
因为您的错误消息是“不包含有效的host:port authority:slave_1:60805“,文件“/etc/hosts”中应有一个值为“salve_1”,例如:“127.0.0.1 salve_1”或“127.0.1.1 salve_1”;
您需要删除此主机名的字符“\”或“-”,然后重试。在您的示例中,可以将其更改为“slave1”;
在我的例子中,我删除了主机名中的“-”字符,然后它就工作了。希望对你有用。

相关问题