When running sql in hive, mapreduce fails to launch the task, check the log that APPmaster cannot find the hadoop path.
Solution:
Add the following codes in mapred-site.xml, the error will be solved.
<configuration> <property> <name>yarn.app.mapreduce.am.env</name> <value>HADOOP_MAPRED_HOME=/opt/apps/hadoop-3.1.1</value> </property> <property> <name>mapreduce.map.env</name> <value>HADOOP_MAPRED_HOME=/opt/apps/hadoop-3.1.1</value> </property> <property> <name>mapreduce.reduce.env</name> <value>HADOOP_MAPRED_HOME=/opt/apps/hadoop-3.1.1</value> </property> </configuration>
Read More:
- hive Run Error: Error: Java heap space [How to Solve]
- MapReduce running in Hadoop environment with maven
- [Solved] SpringBoot Task Error: Unexpected error occurred in scheduled task
- Hive operation TMP file viewing content error [How to Solve]
- [Solved] Execution failed for task ‘:app:uploadCrashlyticsMappingFileRelease‘
- [Solved] Hive On Spark Error: Remote Spark Driver – HiveServer2 connection has been closed
- The MapReduce program generates a jar package and runs with an error classnotfoundexception
- [Solved] Error running ‘tomcat:run‘: Cannot run program “tomcat:run“
- [Solved] android Execution failed for task ‘:app:processDebugManifest‘
- API Failed to Connect phoenix Error: java.sql.SQLException: ERROR 726 (43M10): Inconsistent namespace mapping properties
- How to Solve Flynk Task Java verifyerror 209 error
- [Solved] Mybatis insert Error: Cause: java.sql.SQLException: SQL String cannot be empty
- [Solved] JAVA Operate Database Error: You have an error in your SQL syntax; Dao layer SQL statement error
- OTA Pack Compile Error: ExternalError: Failed to run signapk.jar: return code 1:Error: A JNI error has occurred
- Doris streamload task reported an error connection reset [How to Solve]
- [Solved] hadoop Error: 9000 failed on connection exception java.net.ConnectException Denied to Access
- How to Solve SQL comments error in the mybatis query
- How to Solve Linux connecte to the old version of SQL Server Error
- Java.sql.sqlexception: unable to read more data from socket
- Run hadoop fs -put Command Error: java.io.IOException: Got error, status message , ack with firstBadLink