hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Teja <ravit...@huawei.com>
Subject Re: How to pull data in the Map/Reduce functions?
Date Mon, 26 Sep 2011 05:25:35 GMT
Hi Praveen, 

 

>that data can be pulled using the new MR API

 

The next key value pair can be retrieved from the context object which is
passed to the map, by calling 

nextKeyValue() on it. So you will be able to pull the next data from it in
the new API.

 

Regards,

Ravi Teja

  _____  

From: Praveen Sripati [mailto:praveensripati@gmail.com] 
Sent: Saturday, September 24, 2011 7:13 PM
To: mapreduce-user@hadoop.apache.org
Subject: How to pull data in the Map/Reduce functions?

 

Hi,

Normally the Hadoop framework calls the map()/reduce() for each record in
the input split. I read in the 'Hadoop : The Definitive Guide' that that
data can be pulled using the new MR API.

What is the new API for pulling the data in the map()/reduce() or is there a
sample code?

Thanks,
Praveen


Mime
View raw message