hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Capwell <dcapw...@gmail.com>
Subject Re: Mapping ResourceRequest to returned List<Container>
Date Tue, 12 Mar 2013 23:42:23 GMT
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 <acm@hortonworks.com> 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/
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message