hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jothi Padmanabhan <joth...@yahoo-inc.com>
Subject Re: How to write a map() method that needs no input?
Date Fri, 08 May 2009 06:16:33 GMT
You could write your own InputFormat to fake the split.
See src/test/org/apache/hadoop/mapred/EmptyInputFormat.java


On 5/8/09 11:40 AM, "Foss User" <fossist@gmail.com> wrote:

> Sometimes I would like to just execute a certain method in all nodes.
> The method does not need inputs. So, there is no need of any
> InputFormat implementation class. So, I would want to just write a
> Mapper implementation class with a map() method. But, the problem with
> map() method is that it always needs inputs. How do I avoid this?

View raw message