hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart White <stuart.whi...@gmail.com>
Subject Re: printing only values and not keys in hadoop output files
Date Sat, 05 Sep 2009 23:07:57 GMT
Assuming you're writing plain-text output files using TextOutputFormat,
which normally outputs key/value pairs delimited with a Tab, you can emit a
null for your key, and neither a key nor the Tab delimiter will get written
to the output file.  (At least, I'm pretty sure that's right... I'm not
where I can run a quick test to verify...)

On Sat, Sep 5, 2009 at 5:53 PM, himanshu chandola <
himanshu_coolguy@yahoo.com> wrote:

> Hi Everyone,
> I'm a new bie to hadoop and had this question.
> Normally hadoop spits output data in files in the form :
> key value
> If i would like it to only write the value and not the key, what do I have
> to do ?
> thanks a lot in advance,
> Himanshu
> Morpheus: Do you believe in fate, Neo?
> Neo: No.
> Morpheus: Why Not?
> Neo: Because I don't like the idea that I'm not in control of my life.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message