您的位置:首页 > Web前端

Failed to fetch all URIs for container

2015-11-30 16:26 821 查看
在重新搭建hadoop on mesos的时候。

运行wordcount进行实验,发现在master上的task很顺利,但是在slave上的task都FAILED了。

查看slave上mesos的log,可以看到错误信息:

E1130 15:37:54.397516 157992 fetcher.cpp:515] Failed to run mesos-fetcher: Failed to fetch all URIs for container '2f6046b6-97af-4ce0-abed-8cba9e4b397a' with exit status: 256
E1130 15:37:54.398478 157981 slave.cpp:3342] Container '2f6046b6-97af-4ce0-abed-8cba9e4b397a' for executor 'executor_Task_Tracker_7' of framework '3017e73a-a3f5-405c-8705-ef7f743295a0-0000' failed to start: Failed to fetch all URIs for container '2f6046b6-97af-4ce0-abed-8cba9e4b397a' with exit status: 256


原因是URI不通,但是其实在salve下打 hadoop fs -ls / 可以看到文件存在且权限也是755

后来在老司机的提示下,把URI修改问本地(原来为hdfs的方式)

解决方法:

在hadoop的mapred-site.xml 文件下,修改URI

<property>

  <name>mapred.mesos.executor.uri</name>

  <value>file:///home/ubuntu/hadoop-2.5.0-cdh5.2.0.tar.gz</value>

</property>

然后重启mesos和hadoop相关服务后问题解决
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: