You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by coneybeare <co...@berkeley.edu> on 2008/05/08 08:56:09 UTC
Newbie InputFormat Question
I want to alter the default <"key", "line"> input format to be <"key", "line
number:" + "line"> so that my mapper can have a reference to the line num.
It seems like this should be easy by overwriting either inputformat or
inputsplit... but after reading some of the docs, I am still unsure of where
to begin. Any help is much appreciated.
-Matt
--
View this message in context: http://www.nabble.com/Newbie-InputFormat-Question-tp17120981p17120981.html
Sent from the Hadoop lucene-users mailing list archive at Nabble.com.
Re: Newbie InputFormat Question
Posted by Amareshwari Sriramadasu <am...@yahoo-inc.com>.
You can have a look at TextInputFormat, KeyValueTextInputFormat etc at
http://svn.apache.org/viewvc/hadoop/core/trunk/src/java/org/apache/hadoop/mapred/
coneybeare wrote:
> I want to alter the default <"key", "line"> input format to be <"key", "line
> number:" + "line"> so that my mapper can have a reference to the line num.
> It seems like this should be easy by overwriting either inputformat or
> inputsplit... but after reading some of the docs, I am still unsure of where
> to begin. Any help is much appreciated.
>
> -Matt
>