You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@kylin.apache.org by 55865835 <hm...@qq.com> on 2021/07/06 12:19:48 UTC

Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster

Hi:When I compile the sample cube, there are always errors:


Exit code: 1

[2021-07-06 19:55:24.646]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 check whether your etc/hadoop/mapred-site.xml contains the below configuration:
<property&gt;
<name&gt;yarn.app.mapreduce.am.env</name&gt;
<value&gt;HADOOP_MAPRED_HOME=${full path of your hadoop distribution directory}</value&gt;



but it's ok to execute mapreduct task alone。I've tried to configure the hadoop classpath, but it doesn't work. Have you ever met this situation?Look forward to your reply。

回复: Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster

Posted by 55865835 <hm...@qq.com>.
Hi:


I&nbsp; tried to create&nbsp;the folder&nbsp;/etc/hadoop/conf,&nbsp; and copied the site.xml files of core, yarn, hive and hbase in this folder, and configured kylin.env.hadoop-conf-dir=/etc/hadoop/conf&nbsp; in kylin.properties, and restarted kylin, the problem has been solved. Thanks for your advice.







------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "user"                                                                                    <Yaqian_Zhang@126.com&gt;;
发送时间:&nbsp;2021年7月7日(星期三) 上午9:55
收件人:&nbsp;"user"<user@kylin.apache.org&gt;;"55865835"<hmcheng@qq.com&gt;;

主题:&nbsp;Re: Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster



Hi:

You can check the content of $KYLIN_HOME/bin/cached-hadoop-conf-dir.sh&nbsp;to ensure that the ‘kylin_hadoop_conf_dir' be set to correct HADOOP_CONF path.


If the path is not correct, you can delete the&nbsp; $KYLIN_HOME/bin/cached-hadoop-conf-dir.sh. Then manually configure ‘kylin.env.hadoop-conf-dir' in ‘kylin.properties' and restart kylin.
在 2021年7月6日,20:19,55865835 <hmcheng@qq.com&gt; 写道

Hi:When I compile the sample cube, there are always errors:


Exit code: 1

[2021-07-06 19:55:24.646]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 check whether your etc/hadoop/mapred-site.xml contains the below configuration:
<property&gt;
<name&gt;yarn.app.mapreduce.am.env</name&gt;
<value&gt;HADOOP_MAPRED_HOME=${full path of your hadoop distribution directory}</value&gt;



but it's ok to execute mapreduct task alone。I've tried to configure the hadoop classpath, but it doesn't work. Have you ever met this situation?Look forward to your reply。

Re: Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster

Posted by Yaqian Zhang <Ya...@126.com>.
Hi:

You can check the content of $KYLIN_HOME/bin/cached-hadoop-conf-dir.sh to ensure that the ‘kylin_hadoop_conf_dir' be set to correct HADOOP_CONF path.

If the path is not correct, you can delete the  $KYLIN_HOME/bin/cached-hadoop-conf-dir.sh. Then manually configure ‘kylin.env.hadoop-conf-dir' in ‘kylin.properties' and restart kylin.
> 在 2021年7月6日,20:19,55865835 <hm...@qq.com> 写道
> 
> Hi:
> When I compile the sample cube, there are always errors:
> 
> 
> Exit code: 1
> [2021-07-06 19:55:24.646]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 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>
> 
> but it's ok to execute mapreduct task alone。I've tried to configure the hadoop classpath, but it doesn't work. Have you ever met this situation?Look forward to your reply。