yarn找不到或无法加载主类org.apache.hadoop.mapreduce.v2.app.mrappmaster

e5nqia27  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(618)

我的问题是:我已经在乌班图安装了hive。我测试它之前是工作文件,但后来它开始给出错误。
插入test2值(1,'mahendra');
我的配置单元错误:
查询id=mahendra\u 20180827145546\u 86973630-5eff-4764-ade8-cfc3a8ce5c37
总工作=3
正在启动作业1(共3个)
编译时确定的reduce任务数:1
要更改减速器的平均负载(以字节为单位):
设置hive.exec.reducers.bytes.per.reducer=
为了限制最大还原数:set hive.exec.reducers.max=为了设置常量还原数:set mapreduce.job.reduces=starting job=job\u 1535360274908\u 0006,跟踪url=http://mahendra-system:8088/proxy/application\u 1535360274908\u 0006/kill command=/home/mahendra/hdecho/hadoop-3.0.3/bin/mapred job-kill作业\u 1535360274908\u 0006
阶段1的hadoop作业信息:Map程序数:0;减速器数量:0
2018-08-27 14:55:51645第一阶段map=0%,reduce=0%结束job=job\u 1535360274908\u 0006作业期间出错,获取调试信息。。。
失败:执行错误,从org.apache.hadoop.hive.ql.exec.mr.mapredtask mapreduce作业返回代码2已启动:
阶段1:hdfs读取:0 hdfs写入:0失败mapreduce花费的cpu总时间:0毫秒
我的Yarn错误:
错误:找不到或加载主类org.apache.hadoop.mapreduce.v2.app.mrappmaster
我的诊断:

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</name>
<value>HADOOP_MAPRED_HOME=${full path of your hadoop distribution directory}</value>
</property>
<property>
<name>mapreduce.map.env</name>
<value>HADOOP_MAPRED_HOME=${full path of your hadoop distribution directory}</value>
</property>
<property>
<name>mapreduce.reduce.env</name>
<value>HADOOP_MAPRED_HOME=${full path of your hadoop distribution directory}</value>
</property>

my mapred-site.xml:

<configuration>
    <property>
        <name>mapreduce.framework.name</name>
        <value>yarn</value>
    </property>
    <property>
        <name>mapreduce.application.classpath</name>
        <value>/home/mahendra/HDEcho/hadoop-3.0.3/share/hadoop/mapreduce/*:/home/mahendra/HDEcho/hadoop-3.0.3/share/hadoop/mapreduce/lib/*</value>
    </property>
<property>
<name>yarn.app.mapreduce.am.env</name>
<value>HADOOP_MAPRED_HOME=/home/mahendra/HDEcho/hadoop-3.0.3</value>
</property>
<property>
<name>mapreduce.map.env</name>
<value>HADOOP_MAPRED_HOME=/home/mahendra/HDEcho/hadoop-3.0.3</value>
</property>
<property>
<name>mapreduce.reduce.env</name>
<value>HADOOP_MAPRED_HOME=/home/mahendra/HDEcho/hadoop-3.0.3</value>
</property>
</configuration>
gijlo24d

gijlo24d1#

export YARN_HOME=$HADOOP_HOME

在bashrc为我工作

相关问题