hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Martin <m...@andremartin.de>
Subject Re: Dose hadoop just provide reading by line
Date Wed, 05 Dec 2007 10:32:32 GMT
Hi Bin YANG,
it can read as many lines/bytes as you want - but you need to implement 
your own RecordReader 
(http://lucene.apache.org/hadoop/api/org/apache/hadoop/mapred/RecordReader.html) 
for this (and InputFormat in order to make it usable for your jobs...)
Just take a look at the LineRecordReader as a starting point on how to 
implement a RecordReader.

Cu on the 'net,
                        Bye - bye,

                                   <<<<< André <<<< >>>>
èrbnA >>>>>

...you wrote:
> hi colleague,
>
> Does hadoop just provide reading the files from line to line?
> How can I read many lines from a file?
>
> thanks


Mime
View raw message