Failed to fetch all URIs for container

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值