关于Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster的问题

问题描述

据备赛同学反映,当在Hive中执行排序、聚合等操作时,无法执行,Hive会报错,报错信息如下:

Application application_1680792293337_0001 failed 2 times due to AM Container for appattempt_1680792293337_0001_000002 exited with exitCode: 1
Failing this attempt.Diagnostics: [2023-04-06 22:47:09.382]Exception from container-launch.
Container id: container_1680792293337_0001_02_000001
Exit code: 1
[2023-04-06 22:47:09.420]Container exited with a non-zero exit code 1. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
Please check whether your etc/hadoop/mapred-site.xml contains the below configuration:
<property>
  <name>yarn.app.mapreduce.am.env</ ......
          

......

抱歉,只有登录会员才可浏览!会员登录


《Flink原理深入与编程实战》