hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xine Jar <xineja...@googlemail.com>
Subject Re: Question on setting a new user variable with JobConf
Date Wed, 22 Jul 2009 08:42:32 GMT
Great guys,
thank you a lot it is working now.


On Wed, Jul 22, 2009 at 3:55 AM, Aaron Kimball <aaron@cloudera.com> 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'll
> automatically put that binding in the JobConf created for the tool,
> retrieved via getConf().
>
> - Aaron
>
> On Tue, Jul 21, 2009 at 3:10 PM, Owen O'Malley<owen.omalley@gmail.com>
> wrote:
> > 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.
> >
> > -- Owen
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message