Error: Could not find or load main class org.apache.hadoop.mapred.YarnChild

这篇博客主要讨论了在执行Hadoop YARN时遇到的'Error: Could not find or load main class org.apache.hadoop.mapred.YarnChild'错误。解决方法包括检查hadoop classpath配置,确保在yarn-site.xml中添加了正确的yarn.application.classpath,并通过执行'source /etc/profile'使配置生效。重启服务后问题应得到解决。

Error: Could not find or load main class org.apache.hadoop.mapred.YarnChild

  1. 执行hadoop classpath
  2. 在hadoop配置文件 yarn-site中添加以下配置
  3. 执行 source /etc/profile
  4. 重启生效
yarn.application.classpath 环境变量
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值