Getting error in Hadoop Streaming: Type mismatch in Key from Map

0 votes

While executing Hadoop streaming program, I am getting an error saying Type mismatch in key from Map.

java.lang.Exception: java.io.IOException: Type mismatch in key from map: expected org.apache.hadoop.io.Text, recieved org.apache.hadoop.io.LongWritable

Can anyone explain me what the is error is trying to say and how can I resolve it?

Apr 18, 2018 in Big Data Hadoop by nitinrawat895
• 10,840 points
300 views

1 answer to this question.

0 votes

In Hadoop streaming you have to customize your output and split it into key value pairs. I would recommend you to go through this official document about how to split key value pairs in streaming:

http://hadoop.apache.org/common/docs/current/streaming.html#Customizing+How+Lines+are+Split+into+Key%2FValue+Pairs

answered Apr 18, 2018 by coldcode
• 2,050 points

Related Questions In Big Data Hadoop

+2 votes
1 answer
0 votes
1 answer

FAILEDError: java.io.IOException: Type mismatch in key from map

This error is thrown when the parameters ...READ MORE

answered Jul 30, 2019 in Big Data Hadoop by Rishi
96 views
0 votes
1 answer

Error running hadoop mapreduce in Python using Hadoop Streaming

Hi As you write mapper and reducer program  ...READ MORE

answered 6 days ago in Big Data Hadoop by anonymous
240 views
0 votes
1 answer
+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,840 points
3,915 views
+1 vote
11 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
20,830 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,290 points
1,478 views
0 votes
1 answer
0 votes
2 answers

How can I list NameNode & DataNodes from any machine in the Hadoop cluster?

You can browse hadoop page from any ...READ MORE

answered 3 days ago in Big Data Hadoop by MD
• 390 points
3,540 views
0 votes
1 answer

Getting error while building Hadoop core jar using ant.

I think you are missing libtool library. ...READ MORE

answered Apr 18, 2018 in Big Data Hadoop by coldcode
• 2,050 points
102 views