Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D44617419 for ; Tue, 17 Mar 2015 17:12:18 +0000 (UTC) Received: (qmail 26265 invoked by uid 500); 17 Mar 2015 17:12:12 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 26159 invoked by uid 500); 17 Mar 2015 17:12:12 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 26148 invoked by uid 99); 17 Mar 2015 17:12:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2015 17:12:12 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gaurav.gopi123@gmail.com designates 209.85.217.175 as permitted sender) Received: from [209.85.217.175] (HELO mail-lb0-f175.google.com) (209.85.217.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2015 17:11:47 +0000 Received: by lbcds1 with SMTP id ds1so11954933lbc.3 for ; Tue, 17 Mar 2015 10:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kVJ6z7av0fftVl1MwWHB3/raLfG8F+B0OXbamrkALZc=; b=b25vFUmR50jH3C9iv12QBk5HOgecQsOQtfH5Rol/AQQh/JBJnb2GqVX6nZaMsNtZx5 v3J0Pf/oD53rfr6S8sazIDF0kTUgIITCBLq6bs4ASxSUxiVigVKXU7Npnuk5By0NWtUH +mgcx3GwXM6UAg58ZiZin6DMLgOP77xP0GkxwreWhr5GYlJZfVJJjoTdyMtbLJlBy846 ci7VHUzJtc9ijhafo/rWDLp6e5COFLEUdOVM+wDl8FcjkuHWXl7oj1ne3UOzyjdkSTzh jo6HbRyw40usd9zvbZUS+72gxB6/XgYHb7oNw//UKrShZJX1luNM28qrURFCAQNfMvb4 Fung== MIME-Version: 1.0 X-Received: by 10.152.197.34 with SMTP id ir2mr60574104lac.36.1426612215852; Tue, 17 Mar 2015 10:10:15 -0700 (PDT) Received: by 10.25.20.201 with HTTP; Tue, 17 Mar 2015 10:10:15 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 Mar 2015 10:10:15 -0700 Message-ID: Subject: Re: YARN ignores host-specific resource requests From: Gaurav Gupta To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11343d1c5bb25805117f0af8 X-Virus-Checked: Checked by ClamAV on apache.org --001a11343d1c5bb25805117f0af8 Content-Type: text/plain; charset=UTF-8 Hey Naga, Thanks for the suggestion. The configuration works with HDP but with CDH it doesn't work. I tried with both Faire and Capacity Scheduler. Here is my configuration that I have for Capacity Scheduler in CDH yarn.scheduler.capacity.root.queues default yarn.scheduler.capacity.root.capacity 100 yarn.scheduler.capacity.root.default.capacity 100 yarn.scheduler.capacity.node-locality-delay 40 Thanks Gaurav On Mon, Mar 16, 2015 at 8:41 PM, Naganarasimha G R (Naga) < garlanaganarasimha@huawei.com> wrote: > Hi Gaurav, > If you are using Capacity scheduler then try configuring to yarn.scheduler.capacity.node-locality-delay > to the size of cluster. > By default its set to -1 which make scheduler to assign the container to > non local nodes > > Regards, > Naga > ------------------------------ > *From:* Gaurav Gupta [gaurav.gopi123@gmail.com] > *Sent:* Tuesday, March 17, 2015 03:41 > *To:* user@hadoop.apache.org > *Subject:* YARN ignores host-specific resource requests > > Hi, > I am trying to allocate containers on a particular host. But I don't get > the back the resources. > > I am setting relaxedLocality to false and rack to null. > > Any pointers? > > Thanks > Gaurav > --001a11343d1c5bb25805117f0af8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hey Naga,

Thanks for the suggestion. Th= e configuration works with HDP but with CDH it doesn't work.=C2=A0
I tried with both Faire and Capacity Scheduler.=C2=A0

<= /div>
Here is my configuration that I have for Capacity Scheduler in CD= H

<?xml version=3D"1.0"?>
<configuration>
=C2=A0 <property>
= =C2=A0 =C2=A0 <name>yarn.scheduler.capacity.root.queues</name><= /div>
=C2=A0 =C2=A0 <value>default</value>
=C2=A0= </property>
=C2=A0 <property>
=C2=A0 =C2= =A0 <name>yarn.scheduler.capacity.root.capacity</name>
=C2=A0 =C2=A0 <value>100</value>
=C2=A0 </proper= ty>
=C2=A0 <property>
=C2=A0 =C2=A0 <name&g= t;yarn.scheduler.capacity.root.default.capacity</name>
=C2= =A0 =C2=A0 <value>100</value>
=C2=A0 </property>= ;
=C2=A0 <property>
=C2=A0 =C2=A0 =C2=A0 <name= >yarn.scheduler.capacity.node-locality-delay</name>
=C2= =A0 =C2=A0 =C2=A0 <value>40</value>
=C2=A0 =C2=A0 <= ;/property>
</configuration>

<= div>Thanks
Gaurav

On Mon, Mar 16, 2015 at 8:41 PM, Naganarasimha G R (N= aga) <garlanaganarasimha@huawei.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
Hi Gaurav,
If you are using Capacity = scheduler then try configuring to=C2=A0yarn= .scheduler.capacity.node-locality-delay to the size of cluster.=C2=A0
By default its set to -1 which make scheduler to assign the container = to non local nodes=C2=A0

Regards,
Naga

Fro= m: Gaurav Gupta [gaurav.gopi123@gmail.com]
Sent: Tuesday, March 17, 2015 03:41
To: user= @hadoop.apache.org
Subject: YARN ignores host-specific resource requests

Hi,
I am trying to allocate containers on a particular host. But I don'= ;t get the back the resources.

I am setting relaxedLocality to false and rack to null.=C2=A0

Any pointers?

Thanks
Gaurav

--001a11343d1c5bb25805117f0af8--