On May 4, 2009, at 6:07 PM, Todd Lipcon wrote:
The issue here is that your mapper and reducer classes are being
instantiated in a different JVM from your main() function. In order
to pass
data to them, you need to use the Configuration object.
Since you have a simple String here, this
On May 4, 2009, at 6:07 PM, Todd Lipcon wrote:
Since you have a simple String here, this should be pretty simple.
Something
like:
conf.set(com.example.tool.pattern, otherArgs[2]);
then in the configure() function of your Mapper/Reducer, simply
retrieve it
using
But if conf.set(...) is called after instantiating job, it doesn't.
Is this intended?
yes, Configuration must be set up before instantiating the Job object. However,
some job parameters can be changed (before the actual job submission) by
calling set methods on Job object.
- Sharad