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 <[email protected]> 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