Re: Question on setting a new user variable with JobConf

2009-07-22 Thread Xine Jar
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

Re: Question on setting a new user variable with JobConf

2009-07-21 Thread Aaron Kimball
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

Re: Question on setting a new user variable with JobConf

2009-07-21 Thread Owen O'Malley
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.

Question on setting a new user variable with JobConf

2009-07-21 Thread Xine Jar
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