hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krishna Kishore Bonagiri <write2kish...@gmail.com>
Subject Re: Yarn - specify hosts in ContainerRequest
Date Mon, 17 Feb 2014 05:55:38 GMT
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 <anandmundada@ymail.com>wrote:

> Hi All,
>
> How can I launch container on a particular host?
> I tried specifying host name in
> *new ContainerRequest()*
>
> Thanks,
> Anand
>

Mime
View raw message