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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
allocated
(EventContext context) void
completed
(EventContext context) boolean
isLive
(EventContext context) int
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.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:
maxConcurrentAllocs
in interfaceScheduler.TaskManager
- Overrides:
maxConcurrentAllocs
in classAbstractTaskManager
-
allocated
- Specified by:
allocated
in interfaceScheduler.TaskManager
- Overrides:
allocated
in classAbstractTaskManager
-
completed
- Specified by:
completed
in interfaceScheduler.TaskManager
- Overrides:
completed
in classAbstractTaskManager
-
isLive
- Specified by:
isLive
in interfaceScheduler.TaskManager
- Overrides:
isLive
in classAbstractTaskManager
-