Hive queries from mapreduce gives Null Pointer Exception.

0 votes
Hi. I am using Hive for MapReduce version 1. I am using Hive along with this. Whenever a hive queries is generated from MapReduce job, it is failing with Null Point Exception. I tried the same for different jobs and irrespective of what job I am trying to run, the result is same. Please help me solve this.
Jun 4, 2019 in Big Data Hadoop by Laya
571 views

1 answer to this question.

0 votes

I think you have upgraded CDH. This is a common problem when CDH is upgraded to version 5 and above. To solve this, open the mapred-site.xml file and remove the following property:

<property>
  <name>mapreduce.framework.name</name>
  <value>yarn</value>
</property> 
answered Jun 4, 2019 by Rihan

Related Questions In Big Data Hadoop

+1 vote
0 answers

Hadoop Mapreduce : Null Pointer Exception

While running the below program, I got ...READ MORE

Dec 5, 2019 in Big Data Hadoop by Tarun
• 160 points
391 views
0 votes
1 answer

Which java class handles the output record encoding into files which result from Hive queries?

Hey, This particular class handles the output record ...READ MORE

answered Jun 26, 2019 in Big Data Hadoop by Gitika
• 41,720 points
94 views
0 votes
1 answer

Cannot connect to Hive from MicroStrategy BI tool

The problem is with your hive authentication. ...READ MORE

answered May 8, 2018 in Big Data Hadoop by Shubham
• 13,450 points
395 views
0 votes
1 answer

Hive with JSON: getting EOF exception while querying

You are missing the commas in your ...READ MORE

answered Aug 30, 2018 in Big Data Hadoop by Neha
• 6,300 points
551 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,950 points
6,113 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,950 points
933 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyF ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
39,394 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,320 points
2,294 views
0 votes
1 answer

Can hive queries be executed from script files? And how?

Hey, It is possible by using the source ...READ MORE

answered Jun 25, 2019 in Big Data Hadoop by Gitika
• 41,720 points
127 views
0 votes
1 answer