Great guys,
thank you a lot it is working now.
On Wed, Jul 22, 2009 at 3:55 AM, Aaron Kimball wrote:
> And regarding your desire to set things on the command line: If your
> program implements Tool and is launched via ToolRunner, you can
> specify "-D myparam=myvalue" on the command line and it
And regarding your desire to set things on the command line: If your
program implements Tool and is launched via ToolRunner, you can
specify "-D myparam=myvalue" on the command line and it'll
automatically put that binding in the JobConf created for the tool,
retrieved via getConf().
- Aaron
On T
Configurations, which includes JobConf's, are string to string maps.
Therefore, when you submit the job, you would do:
jobConf.set("my-string", args[2]);
and in the map:
jobConf.get("my-string")
of course it is better to use a static final string rather than a literal,
but it works either way.
Hallo guys,
I would like to create a variable in the JobConf in order to set its value
from the command line
and get it again in the map function.
After a bit of reading here and there I understood that I have to do the
following::
*In the class Map, before the map function I have done this:*
*p