hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bikas Saha <bi...@hortonworks.com>
Subject RE: Mapping ResourceRequest to returned List<Container>
Date Wed, 13 Mar 2013 21:05:24 GMT
When a container comes back from the RM, you want to know which set of
your Requests that container maps to ?

Does that summarize your question?

Bikas

-----Original Message-----
From: David Capwell [mailto:dcapwell@gmail.com]
Sent: Tuesday, March 12, 2013 4:42 PM
To: yarn-dev@hadoop.apache.org
Subject: Re: Mapping ResourceRequest to returned List<Container>

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
View raw message