Re: Read key and values from HDFS

2012-03-30 Thread GUOJUN Zhu
Engineering Freddie Mac Pedro Costa 03/30/2012 01:19 PM Please respond to mapreduce-user@hadoop.apache.org To mapreduce-user cc Subject Read key and values from HDFS The ReduceTask can save the file using several output format: InternalFileOutputFormant, SequenceFileOutputFormat

Re: Read key and values from HDFS

2012-03-30 Thread kasi subrahmanyam
Hi Pedro i am not sure we have a single method for reading the data in output files for different otutput formats. But for sequence files we can use SequenceFile.Reader class in the API to read the sequence files. On Fri, Mar 30, 2012 at 10:49 PM, Pedro Costa wrote: > > The ReduceTask can save t

Re: Read key and values from HDFS

2012-03-30 Thread Harsh J
Hi, Just use "hadoop fs -text ". It would read most of these files without breaking a sweat :) You can look at its implementation inside FsShell.java if you want to implement/reuse things in Java. On Fri, Mar 30, 2012 at 11:01 PM, kasi subrahmanyam wrote: > Hi Pedro i am not sure we have a sing

Fwd: Read key and values from HDFS

2012-04-01 Thread Pedro Costa
Does anyone have answered this question? Because I can't find it. -- Forwarded message -- From: Pedro Costa Date: 30 March 2012 18:19 Subject: Read key and values from HDFS To: mapreduce-user The ReduceTask can save the file using several output f

Re: Read key and values from HDFS

2012-04-01 Thread Harsh J
2012 18:19 > Subject: Read key and values from HDFS > To: mapreduce-user > > > > The ReduceTask can save the file using several output format: > InternalFileOutputFormant, SequenceFileOutputFormat, TeraOuputFormat, etc... > > How can I read the keys and the values from t