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>
<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。
回复: Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
Posted by 55865835 <hm...@qq.com>.
Hi:
I tried to create the folder /etc/hadoop/conf, 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 in kylin.properties, and restarted kylin, the problem has been solved. Thanks for your advice.
------------------ 原始邮件 ------------------
发件人: "user" <Yaqian_Zhang@126.com>;
发送时间: 2021年7月7日(星期三) 上午9:55
收件人: "user"<user@kylin.apache.org>;"55865835"<hmcheng@qq.com>;
主题: 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 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 <hmcheng@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。
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。