FAQ
Hi all,

I want to know how can I check/compare mappers key and values.

Example:

My Mappers have the following to filter documents before being output:

String doc1;

if(!doc1.equals("d1"))
output.collect(new Text('#'+doc1+'#'), new Text('#'+word1.substring(word1.indexOf(',')+1, word1.indexOf('>'))+'#'));


Yet the intermediate output still includes "d1":
#d1# #1#
#d1# #2#
#d1# #1#
#d1# #5#
#d1# #3#
......

I put '#' to see if there was a space or newline included. Any ideas?

Thank you,

Maha

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-user @
categorieshadoop
postedFeb 14, '11 at 6:57p
activeFeb 14, '11 at 6:57p
posts1
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Maha: 1 post

People

Translate

site design / logo © 2022 Grokbase