hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Bhattacharjee <rahul.rec....@gmail.com>
Subject Re: Streaming value of (200MB) from a SequenceFile
Date Mon, 01 Apr 2013 03:56:37 GMT
Sorry for the multiple replies.

There is one more thing that can be done (I guess) for streaming the values
rather then constructing the whole object itself.We can store the value in
hdfs as file and have the location as value of the mapper.Mapper can open a
stream using the location specified.

Not sure if 200 MB file would qualify as small file wrt hadoop or if too
many 200 MB size files would have any impact to the NN.


On Mon, Apr 1, 2013 at 9:02 AM, Rahul Bhattacharjee <rahul.rec.dgp@gmail.com
> wrote:

> Hi Sandy,
> I am also new to Hadoop and have a question here.
> The writable does have a DataInput stream so that the objects can be
> constructed from the byte stream.
> Are you suggesting to save the stream for later use ,but late we cannot
> ascertain the state of the stream.
> For a large value , I think we can actually take the useful part and emmit
> it out of from a mapper , we might also have a custom input format to do
> this thing so that large value doesn't even reach the mapper.
> Am I missing anything here?
> Thanks,
> Rahul
> On Sat, Mar 30, 2013 at 11:22 PM, Jerry Lam <chilinglam@gmail.com> wrote:
>> Hi everyone,
>> I'm having a problem to stream individual key-value pair of 200MB to 1GB
>> from a MapFile.
>> I need to stream the large value to an outputstream instead of reading
>> the entire value before processing because it potentially uses too much
>> memory.
>> I read the API for MapFile, the next(WritableComparable key, Writable
>> val) does not return an input stream.
>> How can I accomplish this?
>> Thanks,
>> Jerry

View raw message