hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Zhang <zjf...@gmail.com>
Subject Re: How can I get system environment variable in core-site.xml
Date Thu, 11 Mar 2010 15:37:30 GMT
Hi Lu,

I assume you are implementing the Tool interface to run your mapreduce job.
Then put the code in the run method

    @Override
    public int run(String[] args) throws Exception {
        JobConf conf=new JobConf();
        conf.set("hostname", InetAddress.getLocalHost().getHostName());
        ..............................

   }



On Thu, Mar 11, 2010 at 7:22 AM, Lu welman <welmanwenzi@gmail.com> wrote:

> Hi, Jeff.
>
> Thank you very much for the reply.
> Unfortunately, I don't where I can set the codes you mentioned.
> Can you tell me more about that?
> Thanks!
>
> Regards
> welman Lu
>



-- 
Best Regards

Jeff Zhang

Mime
View raw message