Package org.apache.drill.yarn.core
Class YarnRMClient
java.lang.Object
org.apache.drill.yarn.core.YarnRMClient
YARN resource manager client implementation for Drill. Provides a wrapper
around the YARN client interface to the Resource Manager. Used by the client
app to start the Drill application master.
Based on simple-yarn-app
-
Constructor Summary
ConstructorDescriptionYarnRMClient
(org.apache.hadoop.yarn.api.records.ApplicationId appId) YarnRMClient
(org.apache.hadoop.yarn.conf.YarnConfiguration conf) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse
org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier>
org.apache.hadoop.yarn.api.records.ApplicationId
getAppId()
org.apache.hadoop.yarn.api.records.ApplicationReport
String[]
Return standard class path entries from the YARN application class path.void
void
submitAppMaster
(AppSpec spec) void
Wait for the application to enter one of the completion states.org.apache.hadoop.yarn.api.records.ApplicationAttemptId
Waits for the application to start.
-
Constructor Details
-
YarnRMClient
public YarnRMClient() -
YarnRMClient
public YarnRMClient(org.apache.hadoop.yarn.api.records.ApplicationId appId) -
YarnRMClient
public YarnRMClient(org.apache.hadoop.yarn.conf.YarnConfiguration conf)
-
-
Method Details
-
createAppMaster
public org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse createAppMaster() throws YarnClientException- Throws:
YarnClientException
-
submitAppMaster
- Throws:
YarnClientException
-
getAppId
public org.apache.hadoop.yarn.api.records.ApplicationId getAppId() -
getAppReport
public org.apache.hadoop.yarn.api.records.ApplicationReport getAppReport() throws YarnClientException- Throws:
YarnClientException
-
waitForStart
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId waitForStart() throws YarnClientExceptionWaits for the application to start. This version is somewhat informal, the intended use is when debugging unmanaged applications.- Throws:
YarnClientException
-
waitForCompletion
Wait for the application to enter one of the completion states. This is an informal implementation useful for testing.- Throws:
YarnClientException
-
getAMRMToken
public org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier> getAMRMToken() throws YarnClientException- Throws:
YarnClientException
-
getYarnAppClassPath
Return standard class path entries from the YARN application class path. -
killApplication
- Throws:
YarnClientException
-