Package org.apache.drill.yarn.appMaster
Class AbstractDrillbitScheduler.DrillbitManager
java.lang.Object
org.apache.drill.yarn.appMaster.AbstractTaskManager
org.apache.drill.yarn.appMaster.AbstractDrillbitScheduler.DrillbitManager
- All Implemented Interfaces:
Scheduler.TaskManager
- Enclosing class:
AbstractDrillbitScheduler
Interface to provide Drill-bit specific behavior. Ideally, this class would
provide the interface to gracefully shut down a Drillbit, but Drill has no
API to do graceful shutdown in this release. (The only graceful shutdown is
by issuing a SIGTERM from the node runing the Drillbit, but YARN has no way
to do this, despite active discussions on several YARN JIRA entries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallocated(EventContext context) voidcompleted(EventContext context) booleanisLive(EventContext context) intAllow only one concurrent container request by default to ensure that the node blacklist mechanism works to ensure that the RM does not allocate two containers on the same node.Methods inherited from class org.apache.drill.yarn.appMaster.AbstractTaskManager
getLaunchSpec, stop
-
Constructor Details
-
DrillbitManager
public DrillbitManager()
-
-
Method Details
-
maxConcurrentAllocs
public int maxConcurrentAllocs()Allow only one concurrent container request by default to ensure that the node blacklist mechanism works to ensure that the RM does not allocate two containers on the same node.- Specified by:
maxConcurrentAllocsin interfaceScheduler.TaskManager- Overrides:
maxConcurrentAllocsin classAbstractTaskManager
-
allocated
- Specified by:
allocatedin interfaceScheduler.TaskManager- Overrides:
allocatedin classAbstractTaskManager
-
completed
- Specified by:
completedin interfaceScheduler.TaskManager- Overrides:
completedin classAbstractTaskManager
-
isLive
- Specified by:
isLivein interfaceScheduler.TaskManager- Overrides:
isLivein classAbstractTaskManager
-