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,670 points
236 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,020 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 in Big Data Hadoop by Rishi
22 views
0 votes
0 answers

Error running hadoop mapreduce in Python using Hadoop Streaming

I was trying a sample mapredyce code ...READ MORE

Apr 2, 2018 in Big Data Hadoop by nitinrawat895
• 10,670 points
105 views
0 votes
1 answer
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,670 points
2,740 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
13,576 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,240 points
995 views
0 votes
1 answer
0 votes
1 answer
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,020 points
54 views