spring - Spring Hadoop示例Mapreduce抛出auxService:mapreduce_shuffle异常

标签 spring hadoop spring-data-hadoop

我正在跟踪spring hadoop示例here,并尝试在mapReduce项目下运行它:

$ mvn clean package

$ sh ./target/appassembler/bin/wordcount

我收到此错误:
17:42:55,067  INFO doop.yarn.client.api.impl.YarnClientImpl: 174 - Submitted application application_1433091289740_0003 to ResourceManager at localhost/127.0.0.1:8032
17:42:55,095  INFO          org.apache.hadoop.mapreduce.Job:1272 - The url to track the job: http://http://SJCC02MT0NUFD58.local:8088/proxy/application_1433091289740_0003/
17:42:55,096  INFO          org.apache.hadoop.mapreduce.Job:1317 - Running job: job_1433091289740_0003
17:43:15,269  INFO          org.apache.hadoop.mapreduce.Job:1338 - Job job_1433091289740_0003 running in uber mode : false
17:43:15,271  INFO          org.apache.hadoop.mapreduce.Job:1345 -  map 0% reduce 0%
17:43:16,306  INFO          org.apache.hadoop.mapreduce.Job:1424 - Task Id : attempt_1433091289740_0003_m_000000_0, Status : FAILED
Container launch failed for container_1433091289740_0003_01_000002 : org.apache.hadoop.yarn.exceptions.InvalidAuxServiceException: The auxService:mapreduce_shuffle does not exist
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

我可以运行hadoop命令,例如:hdfs dfs -ls , hdfs dfs -put....,也可以访问:http://localhost:50070/dfshealth.html#tab-datanode
但是为什么会发生这种异常?

最佳答案

确保在yarn-site.xml上具有以下内容

<property>
    <name>yarn.resourcemanager.hostname</name>
    <value>0.0.0.0</value>
  </property>

关于spring - Spring Hadoop示例Mapreduce抛出auxService:mapreduce_shuffle异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30564242/

相关文章:

spring - Spring Data 中的 findAll Iterable AND Pageable

spring - 将手动创建的对象加载到 spring 上下文

apache - Storm ui错误:org.apache.storm.utils.NimbusLeaderNotFoundException:从种子主机[localhost]中找不到领导者雨云

spring - 如何使用spring数据模拟hdfs操作

spring - 捕获 Spring 上下文关闭错误

java - 如何部署 "Building REST Services with Spring"教程?

java - 使用 HTTP GET 测试端点

hadoop - 如何从Mapper或Reducer发出值列表?

java - HBase 设置时间戳

spring - 在Spring数据hadoop上运行作业的问题