配置错误
修改了mapred-site.xml
mapreduce.framework.name
yarn
yarn-site.xml:
yarn.resourcemanager.hostname
Master
yarn.nodemanager.aux_services
mapreduce_shuffle
没有重启集群
使用hadoop dfsadmin -refreshNodes
执行程序:
hadoop jar ./myJAR/Q1SumDeptSalary.jar com.chb.dept_emp1.Q1SumDeptSalary hdfs://192.168.1.124:9000/input/in1/dept hdfs://192.168.1.124:9000/input/in1/emp hdfs://192.168.1.124:9000/output/out1
出现错误:
16/10/30 16:25:27 INFO mapreduce.Job: Task Id : attempt_1477814620602_0002_m_000000_2, Status : FAILED
Container launch failed for container_1477814620602_0002_01_000004 : org.apache.hadoop.yarn.exceptions.InvalidAuxServiceException: The auxService:mapreduce_shuffle does not exist
由于yarn-site.xml文件配置错误,
yarn.nodemanager.aux_services
应该为 yarn.nodemanager.aux-services
注意中间是”-” 而不是”_”
Job job_1477816592523_0003 running in uber mode : false
参考: Uber模式参数(客户端配置)
http://www.tuicool.com/articles/yuE36f
http://www.iyunv.com/thread-31486-1-1.html
“`