Amazing thanks, it worked. I didn't mentioned last flag 'false'

Thanks kishor. :)

Sent from my iPhone

> On Feb 16, 2014, at 11:55 PM, Krishna Kishore Bonagiri 
> <[email protected]> wrote:
> 
> Hi Anand,
> 
>   Which version of Hadoop are you using? It works from 2.2.0
> 
> Try like this, and it should work. I am using this feature on 2.2.0
> 
>        String[] hosts = new String[1];
>        hosts[0] = node_name;
>        ContainerRequest request = new ContainerRequest(capability, hosts, 
> null, p, false);
> 
> 
> Thanks,
> Kishore
> 
> 
>> On Fri, Feb 14, 2014 at 11:43 PM, Anand Mundada <[email protected]> 
>> wrote:
>> Hi All,
>> 
>> How can I launch container on a particular host?
>> I tried specifying host name in 
>> new ContainerRequest()
>> 
>> Thanks,
>> Anand
> 

Reply via email to