启动好集群之后,在运行wordcount example jar时报错:
2022-10-12 08:11:07,411 INFO mapreduce.Job: map 0% reduce 0%
2022-10-12 08:11:07,445 INFO mapreduce.Job: Job job_1665576323589_0001 failed with state FAILED due to: Application application_1665576323589_0001 failed 2 times due to AM Container for appattempt_1665576323589_0001_000002 exited with exitCode: 1
Failing this attempt.Diagnostics: [2022-10-12 08:11:07.137]Exception from container-launch.
Container id: container_1665576323589_0001_02_000001
Exit code: 1
[2022-10-12 08:11:07.189]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 chec
在启动Hadoop 3.2.0集群后,尝试运行wordcount示例时遇到错误。相较于3.1.3版本,3.2.0出现新的问题。解决此问题需要在mapred-site.xml中添加特定配置,指定Hadoop的安装目录。更新配置文件后,无需重启集群,只需重新运行程序,即可正常执行。
订阅专栏 解锁全文
1818

被折叠的 条评论
为什么被折叠?



