Failed to fetch all URIs for container

来源:互联网 发布:淘宝最漂亮的女模特 编辑:程序博客网 时间:2024/06/03 23:04

在重新搭建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: 256E1130 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相关服务后问题解决


0 0