hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anfernee Xu <anfernee...@gmail.com>
Subject org.apache.hadoop.yarn.server.resourcemanager.scheduler.Allocation explanation is wanted!
Date Wed, 05 Feb 2014 02:15:03 GMT

I'm reading YARN source code, in particular on RM as I need to implement a
special resource scheduler other than the shipped impl such as  capacity or
fair scheduler, when looking at

.FifoScheduler.allocate(ApplicationAttemptId, List<ResourceRequest>,
List<ContainerId>, List<String>, List<String>)

returns org.apache.hadoop.yarn.server.resourcemanager.scheduler.Allocation,
I would like to know the exact meaning of each field in Allocation, for

       final List<Container> containers;

Does it contains the list of potential containers where task or appMaster
will run at? What happens if the list is empty?

Another question is how container assignment is performed in scheduler, I
think there's no container in RM initially before the first application is
started. Is there any sequence diagram to describe the whole flow?


View raw message