Example on how to decompress the output file?

2011-07-05 Thread Pedro Sa Costa
Hi, In my hadoop running example, the data ouput is compressed using gzip. I would like to create a small java program that decompress the output. Can anyone give an example on how to decompress the output in java using the hadoop API? -- Best regards, ---

Re: Example on how to decompress the output file?

2011-07-05 Thread real great..
would not a shell program be better suited? just inquisitive. On Tue, Jul 5, 2011 at 8:54 PM, Pedro Sa Costa wrote: > > Hi, > > In my hadoop running example, the data ouput is compressed using gzip. I > would > like to create a small java program that decompress the output. Can anyone > give an

Re: Example on how to decompress the output file?

2011-07-05 Thread David Rosenstrauch
On 07/05/2011 11:24 AM, Pedro Sa Costa wrote: Hi, In my hadoop running example, the data ouput is compressed using gzip. I would like to create a small java program that decompress the output. Can anyone give an example on how to decompress the output in java using the hadoop API? Write a Ja

Re: Example on how to decompress the output file?

2011-07-05 Thread Pedro Sa Costa
first of ll, I would like to create a java program and not using shell commands. But your question brings me another one. If java already contains classes to compress data, why hadoop mapreduce created their own class like ./org/apache/hadoop/io/compress/GzipCodec.java? > would not a shell p

Re: Example on how to decompress the output file?

2011-07-05 Thread Harsh J
I think the 'hadoop fs -text' command may just be what you need. It decompresses various formats by itself, and gzip for both Sequence and Text files is included in its feature set. On Tue, Jul 5, 2011 at 8:54 PM, Pedro Sa Costa wrote: > > Hi, > > In my hadoop running example, the data ouput is