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 5C2EBE9D3 for ; Tue, 12 Mar 2013 23:42:49 +0000 (UTC) Received: (qmail 89968 invoked by uid 500); 12 Mar 2013 23:42:49 -0000 Delivered-To: apmail-hadoop-yarn-dev-archive@hadoop.apache.org Received: (qmail 89933 invoked by uid 500); 12 Mar 2013 23:42:49 -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 89925 invoked by uid 99); 12 Mar 2013 23:42:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Mar 2013 23:42:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dcapwell@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-wg0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Mar 2013 23:42:43 +0000 Received: by mail-wg0-f45.google.com with SMTP id dq12so423713wgb.12 for ; Tue, 12 Mar 2013 16:42:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=7iyRqAD/ZvotJ53x+2pLL9SM3lgzD0ERuz3xrWmx/rU=; b=W2Q2TCtXof41+i7IF9mONmTdVLJsdmWyP+UcBNY/NF4/GMUxrQw+26ndsB0tfuuSFd Kh1iInKeVeRj68d666/U99NZFYK/I7MYbb+S+PR5Dro23+7grjF7hCBHQZeQybv1mqSJ HIJfHYZ5psQAreTn/JhkEEkUD6prhbSto0FvP49WNzsn0PFMkd17o4p4xKHV0hGDmSIb h59NZur9gOe0u+yTSKANHQ4Nl2MO863U4GWdnA/cYnTSc8AkVriaqmAlI3g7p2Mp+r0k cZ6BbW8B21EZRhCj8zk5ugoD+G3g3HwgxXYsRGMEhhEHSylG4c0RPersxbaEpTdpxRaF K+bQ== MIME-Version: 1.0 X-Received: by 10.194.82.34 with SMTP id f2mr30358096wjy.25.1363131743150; Tue, 12 Mar 2013 16:42:23 -0700 (PDT) Received: by 10.194.61.175 with HTTP; Tue, 12 Mar 2013 16:42:23 -0700 (PDT) In-Reply-To: <7ED38BA5-BE4A-45D1-A860-9C93F2006163@hortonworks.com> References: <7ED38BA5-BE4A-45D1-A860-9C93F2006163@hortonworks.com> Date: Tue, 12 Mar 2013 16:42:23 -0700 Message-ID: Subject: Re: Mapping ResourceRequest to returned List From: David Capwell To: yarn-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7beb95c05529c704d7c2d70f X-Virus-Checked: Checked by ClamAV on apache.org --047d7beb95c05529c704d7c2d70f Content-Type: text/plain; charset=ISO-8859-1 Thanks. For what I am working on, the container resources are the same for everything, so I will just use any random container and make sure that all localized resources are the same. When I change the required resources later i can use that to filter. On Tue, Mar 12, 2013 at 4:30 PM, Arun C Murthy wrote: > YARN doesn't provide this mapping. > > If you really care, you could ask for containers with different Priority > and the returned allocation will tell you what Priority was the origin for > the container. > > Arun > > On Mar 12, 2013, at 11:11 AM, David Capwell wrote: > > > I had a question on working with yarn. If I create a ResourceRequest > with > > numContainers = 10, do I have any way to map the containers returned > > from getAllocatedContainers to the ResourceRequest? One solution that I > > was thinking about is saying that request 1 has id range 1-10 but that > > would imply that when yarn returns the container that the id are > sequential > > based off the request, not allocated time. So if I make request 1 and > > request 2 but request 2 gets the resources first, what does container #1 > > map to? > > > > thanks for your time reading this email. > > -- > Arun C. Murthy > Hortonworks Inc. > http://hortonworks.com/ > > > --047d7beb95c05529c704d7c2d70f--