hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: How do I run job on the every nodes without input file.
Date Mon, 02 Apr 2007 18:55:01 GMT
김형준 wrote:
> How do I run job on the every node without input file?

Define an InputFormat that returns InputSplits.  The number of input 
splits returned is usually determined by job.getNumMapTasks(), but you 
could instead use JobClient.getClusterStatus().getTaskTrackers() to run 
one task per node.

InputSplits need not name files other external data.  They contain 
simply the required parameters for each task, if any.

Doug

Mime
View raw message