Hadoop3.2.0运行wordcount程序报错Please check whether your etc/hadoop/mapred-site.xml contains the below

在启动Hadoop 3.2.0集群后,尝试运行wordcount示例时遇到错误。相较于3.1.3版本,3.2.0出现新的问题。解决此问题需要在mapred-site.xml中添加特定配置,指定Hadoop的安装目录。更新配置文件后,无需重启集群,只需重新运行程序,即可正常执行。
摘要由CSDN通过智能技术生成

启动好集群之后,在运行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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

QYHuiiQ

听说打赏的人工资翻倍~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值