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

2021-08-05 10:06:55 浏览数 (1)

执行hadoop classpath

  1. 在hadoop配置文件 yarn-site中添加以下配置 <property> <name>yarn.application.classpath</name> <value>/home/hadoop/hadoop-3.3.1/etc/hadoop:/home/hadoop/hadoop-3.3.1/share/hadoop/common/lib/:/home/hadoop/hadoop-3.3.1/share/hadoop/common/:/home/hadoop/hadoop-3.3.1/share/hadoop/hdfs:/home/hadoop/hadoop-3.3.1/share/hadoop/hdfs/lib/:/home/hadoop/hadoop-3.3.1/share/hadoop/hdfs/:/home/hadoop/hadoop-3.3.1/share/hadoop/mapreduce/:/home/hadoop/hadoop-3.3.1/share/hadoop/yarn:/home/hadoop/hadoop-3.3.1/share/hadoop/yarn/lib/:/home/hadoop/hadoop-3.3.1/share/hadoop/yarn/*</value> </property>
  2. 执行 source /etc/profile
  3. 重启生效

0 人点赞