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 in Big Data Hadoop by Laya
44 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 by Rihan

Related Questions In Big Data Hadoop

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 in Big Data Hadoop by Gitika
• 25,340 points
32 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,300 points
194 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,280 points
153 views
0 votes
1 answer

Not able to run Hive queries.

Try bin/hive -e 'LOAD DATA INPATH kv1.txt OVERWRITE ...READ MORE

answered Aug 30, 2018 in Big Data Hadoop by Frankie
• 9,810 points
204 views
0 votes
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,690 points
3,023 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,690 points
337 views
0 votes
10 answers

hadoop fs -put command?

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

answered Dec 7, 2018 in Big Data Hadoop by Aditya
14,919 views
0 votes
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,260 points
1,109 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 in Big Data Hadoop by Gitika
• 25,340 points
28 views