Re: Hive 3,0 on Hadoop 3.0.3 crahes with org.apache.hadoop.mapreduce.v2.app.MRAppMaster error

2018-06-13 Thread Mich Talebzadeh
sorted out. needed to add the following to
${HADOOP_HOME}/etc/Hadoop/mapred-site.xml !

   
mapreduce.framework.name
yarn


yarn.app.mapreduce.am.env
HADOOP_MAPRED_HOME=${HADOOP_HOME}


mapreduce.map.env
HADOOP_MAPRED_HOME=${HADOOP_HOME}


mapreduce.reduce.env
HADOOP_MAPRED_HOME=${HADOOP_HOME}



Dr Mich Talebzadeh



LinkedIn * 
https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw
*



http://talebzadehmich.wordpress.com


*Disclaimer:* Use it at your own risk. Any and all responsibility for any
loss, damage or destruction of data or any other property which may arise
from relying on this email's technical content is explicitly disclaimed.
The author will in no case be liable for any monetary damages arising from
such loss, damage or destruction.



On 13 June 2018 at 23:49, Mich Talebzadeh  wrote:

>
> *Hadoop 3.0.3Hive (version 3.0.0)*
>
> Running a simple query
>
> select count(1) from sales;
>
> I get the following error in container
>
> Error: Could not find or load main class org.apache.hadoop.mapreduce.
> v2.app.MRAppMaster
>
> The container file launch_container.sh has the following entry
>
> exec /bin/bash -c "$JAVA_HOME/bin/java 
> -Dlog4j.configuration=container-log4j.properties
> -Dyarn.app.container.log.dir=/home/hduser/hadoop-3.0.3/logs/
> userlogs/application_1528926568884_0006/container_1528926568884_0006_02_01
>
>
> -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA
> -Dhadoop.root.logfile=syslog
>
>  -Xmx1024m org.apache.hadoop.mapreduce.v2.app.MRAppMaster
>
> 1>/home/hduser/hadoop-3.0.3/logs/userlogs/application_
> 1528926568884_0006/container_1528926568884_0006_02_01/stdout
> 2>/home/hduser/hadoop-3.0.3/logs/userlogs/application_
> 1528926568884_0006/container_1528926568884_0006_02_01/stderr "
>
> Dr Mich Talebzadeh
>
>
>
> LinkedIn * 
> https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw
> *
>
>
>
> http://talebzadehmich.wordpress.com
>
>
> *Disclaimer:* Use it at your own risk. Any and all responsibility for any
> loss, damage or destruction of data or any other property which may arise
> from relying on this email's technical content is explicitly disclaimed.
> The author will in no case be liable for any monetary damages arising from
> such loss, damage or destruction.
>
>
>


Hive 3,0 on Hadoop 3.0.3 crahes with org.apache.hadoop.mapreduce.v2.app.MRAppMaster error

2018-06-13 Thread Mich Talebzadeh
*Hadoop 3.0.3Hive (version 3.0.0)*

Running a simple query

select count(1) from sales;

I get the following error in container

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

The container file launch_container.sh has the following entry

exec /bin/bash -c "$JAVA_HOME/bin/java
-Dlog4j.configuration=container-log4j.properties
-Dyarn.app.container.log.dir=/home/hduser/hadoop-3.0.3/logs/userlogs/application_1528926568884_0006/container_1528926568884_0006_02_01


-Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA
-Dhadoop.root.logfile=syslog

 -Xmx1024m org.apache.hadoop.mapreduce.v2.app.MRAppMaster

1>/home/hduser/hadoop-3.0.3/logs/userlogs/application_1528926568884_0006/container_1528926568884_0006_02_01/stdout
2>/home/hduser/hadoop-3.0.3/logs/userlogs/application_1528926568884_0006/container_1528926568884_0006_02_01/stderr
"

Dr Mich Talebzadeh



LinkedIn * 
https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw
*



http://talebzadehmich.wordpress.com


*Disclaimer:* Use it at your own risk. Any and all responsibility for any
loss, damage or destruction of data or any other property which may arise
from relying on this email's technical content is explicitly disclaimed.
The author will in no case be liable for any monetary damages arising from
such loss, damage or destruction.