Return-Path: X-Original-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 55FCD11D8F for ; Sun, 11 May 2014 07:59:10 +0000 (UTC) Received: (qmail 31221 invoked by uid 500); 10 May 2014 23:28:35 -0000 Delivered-To: apmail-hadoop-yarn-dev-archive@hadoop.apache.org Received: (qmail 89012 invoked by uid 500); 10 May 2014 23:18:23 -0000 Mailing-List: contact yarn-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-dev@hadoop.apache.org Delivered-To: mailing list yarn-dev@hadoop.apache.org Received: (qmail 5244 invoked by uid 99); 10 May 2014 23:03:56 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 May 2014 23:03:56 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of prvs=1979c8f3a=criccomini@linkedin.com designates 69.28.149.80 as permitted sender) Received: from [69.28.149.80] (HELO esv4-mav04.corp.linkedin.com) (69.28.149.80) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2014 19:44:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkedin.com; i=@linkedin.com; q=dns/txt; s=proddkim1024; t=1399491878; x=1431027878; h=from:to:subject:date:message-id:mime-version; bh=JyKuD8PFD+xMg6Z7PmHgMjfT8d1aeaZSDjWrvmT9gdI=; b=fPLijBdnjYwGhipyzTxowyuHiXrSVmnR4H71IIO0RWl9/KFao/s1PWnt rW9s/dHzpxQ4UULCdJB8QmPGudJmHlfRyKDbf8eNa4CH54++eAvB8wJ6R pFxHKkpa5stEoKdVAMQZG7v+Rp4KkseHksvJG0ZSAiJ9LGfdu8AyGJ0fC s=; X-IronPort-AV: E=Sophos;i="4.97,1005,1389772800"; d="scan'208,217";a="120108769" Received: from ESV4-MBX03.linkedin.biz ([fe80::14ba:eaea:c913:fa88]) by ESV4-HT01.linkedin.biz ([::1]) with mapi id 14.03.0174.001; Wed, 7 May 2014 12:44:17 -0700 From: Chris Riccomini To: "yarn-dev@hadoop.apache.org" Subject: Host-specific ContainerRequest ignored Thread-Topic: Host-specific ContainerRequest ignored Thread-Index: AQHPaiy61nPXPW8vjESusNToeYFwiw== Date: Wed, 7 May 2014 19:44:16 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.1.140326 x-originating-ip: [172.18.46.253] Content-Type: multipart/alternative; boundary="_000_CF8FDB1C287B9criccominilinkedincom_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_CF8FDB1C287B9criccominilinkedincom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hey Guys, I am creating a container request: protected def requestContainers(memMb: Int, cpuCores: Int, containers: In= t) { info("Requesting %d container(s) with %dmb of memory" format (container= s, memMb)) val capability =3D Records.newRecord(classOf[Resource]) val priority =3D Records.newRecord(classOf[Priority]) priority.setPriority(0) capability.setMemory(memMb) capability.setVirtualCores(cpuCores) (0 until containers).foreach(idx =3D> amClient.addContainerRequest(new = ContainerRequest(capability, null, null, priority))) } This pretty closely mirrors the distributed shell example. If I put an array with a host string in the ContainerRequest, YARN seems to= completely ignore this request, and continues to put all containers on one= or two nodes in the grid, which aren't the ones I requested, even though t= he grid is completely empty, and there are 15 nodes available. This also ho= lds true if I put "false" for relax locality. I'm running the CapacitySched= uler with a node-locality-delay set to 40. Previously, I tried the FifoSche= duler, and it exhibited the same behavior. All NMs are just using the /default-rack for their rack. The strings that I= 'm putting in the hosts String[] parameter in ContainerRequest are hard cod= ed to exactly match the NodeIds being listed in the NMs. What am I doing wrong? I feel like I'm missing some configuration on the ca= pacity scheduler or NMs or something. Cheers, Chris --_000_CF8FDB1C287B9criccominilinkedincom_--