I believe there is no requirement to save both key and value for the 
OutputFormat, therefore, it is not guaranteed that you can extract 
(key,value) pair from a file generated by an arbitrary OutputFormat. 

Zhu, Guojun
Modeling Sr Graduate
571-3824370
[email protected]
Financial Engineering
Freddie Mac



   Pedro Costa <[email protected]> 
   03/30/2012 01:19 PM
   Please respond to
[email protected]


To
mapreduce-user <[email protected]>
cc

Subject
Read key and values from HDFS







The ReduceTask can save the file using several output format: 
InternalFileOutputFormant, SequenceFileOutputFormat, TeraOuputFormat, 
etc...

How can I read the keys and the values from the output file? Can anyone 
give me an example? Is there a way to create just one method that can read 
all different outputformat?


Thanks,

-- 
Best regards,

Reply via email to