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,920 points
402 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
197 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 Jan 21 in Big Data Hadoop by anonymous
445 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,920 points
5,453 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
33,830 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,310 points
2,061 views
0 votes
1 answer
0 votes
2 answers
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
170 views