Package org.apache.drill.yarn.appMaster
Interface AMYarnFacade
- All Known Implementing Classes:
AMYarnFacadeImpl
public interface AMYarnFacade
Defines the interface between the Application Master and YARN. This interface
enables the use of a mock implementation for testing as well as the actual
implementation that works with YARN.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Provides a collection of web UI links for the YARN Resource Manager and the Node Manager that is running the Drill-on-YARN AM. -
Method Summary
Modifier and TypeMethodDescriptionvoid
blacklistNode
(String nodeName) void
int
List<org.apache.hadoop.yarn.api.records.NodeReport>
org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse
org.apache.hadoop.yarn.api.records.Resource
void
killContainer
(org.apache.hadoop.yarn.api.records.Container container) void
launchContainer
(org.apache.hadoop.yarn.api.records.Container container, LaunchSpec taskSpec) void
void
releaseContainer
(org.apache.hadoop.yarn.api.records.Container container) void
removeBlacklist
(String nodeName) void
removeContainerRequest
(org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest containerRequest) org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest
requestContainer
(ContainerRequestSpec containerSpec) void
start
(org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler resourceCallback, org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler nodeCallback) boolean
-
Method Details
-
start
void start(org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler resourceCallback, org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler nodeCallback) -
register
- Throws:
YarnFacadeException
-
getTrackingUrl
String getTrackingUrl() -
requestContainer
org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest requestContainer(ContainerRequestSpec containerSpec) -
removeContainerRequest
void removeContainerRequest(org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest containerRequest) -
launchContainer
void launchContainer(org.apache.hadoop.yarn.api.records.Container container, LaunchSpec taskSpec) throws YarnFacadeException - Throws:
YarnFacadeException
-
finish
- Throws:
YarnFacadeException
-
releaseContainer
void releaseContainer(org.apache.hadoop.yarn.api.records.Container container) -
killContainer
void killContainer(org.apache.hadoop.yarn.api.records.Container container) -
getNodeCount
int getNodeCount() -
getResources
org.apache.hadoop.yarn.api.records.Resource getResources() -
getRegistrationResponse
org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse getRegistrationResponse() -
blacklistNode
-
removeBlacklist
-
getNodeReports
- Throws:
YarnFacadeException
-
getAppHostReport
AMYarnFacade.YarnAppHostReport getAppHostReport() -
supportsDiskResource
boolean supportsDiskResource()
-