public class LocalClient extends FrameworkClient
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
LocalClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected org.apache.hadoop.yarn.api.records.YarnApplicationState |
convertDAGAppMasterState(DAGAppMasterState dagAppMasterState) |
protected org.apache.hadoop.yarn.api.records.FinalApplicationStatus |
convertDAGAppMasterStateToFinalYARNState(DAGAppMasterState dagAppMasterState) |
org.apache.hadoop.yarn.client.api.YarnClientApplication |
createApplication() |
protected DAGAppMaster |
createDAGAppMaster(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
org.apache.hadoop.yarn.api.records.ContainerId cId,
String currentHost,
int nmPort,
int nmHttpPort,
org.apache.hadoop.yarn.util.Clock clock,
long appSubmitTime,
boolean isSession,
String userDir,
String[] localDirs,
String[] logDirs,
org.apache.hadoop.security.Credentials credentials,
String jobUserName) |
protected Thread |
createDAGAppMaster(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appContext) |
TezAppMasterStatus |
getAMStatus(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.security.UserGroupInformation ugi) |
org.apache.hadoop.yarn.api.records.ApplicationReport |
getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
void |
init(TezConfiguration tezConf) |
boolean |
isRunning() |
void |
killApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
boolean |
shutdownSession(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.yarn.api.records.ApplicationId sessionAppId,
org.apache.hadoop.security.UserGroupInformation ugi) |
void |
start() |
protected void |
startDAGAppMaster(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appContext) |
void |
stop() |
org.apache.hadoop.yarn.api.records.ApplicationId |
submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appContext) |
DAGClient |
submitDag(DAG dag,
DAGClientAMProtocolRPC.SubmitDAGRequestProto request,
String clientName,
org.apache.hadoop.yarn.api.records.ApplicationId sessionAppId,
long clientTimeout,
org.apache.hadoop.security.UserGroupInformation ugi,
TezConfiguration tezConf) |
createFrameworkClient, getProxy, waitForProxypublic void init(TezConfiguration tezConf)
init in class FrameworkClientpublic void start()
start in class FrameworkClientpublic void stop()
stop in class FrameworkClientpublic void close()
throws IOException
close in class FrameworkClientIOExceptionpublic org.apache.hadoop.yarn.client.api.YarnClientApplication createApplication()
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
createApplication in class FrameworkClientorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic org.apache.hadoop.yarn.api.records.ApplicationId submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appContext)
throws IOException,
org.apache.hadoop.yarn.exceptions.YarnException
submitApplication in class FrameworkClientIOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionpublic void killApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId)
killApplication in class FrameworkClientpublic boolean isRunning()
isRunning in class FrameworkClientpublic org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId)
getApplicationReport in class FrameworkClientprotected org.apache.hadoop.yarn.api.records.FinalApplicationStatus convertDAGAppMasterStateToFinalYARNState(DAGAppMasterState dagAppMasterState)
protected org.apache.hadoop.yarn.api.records.YarnApplicationState convertDAGAppMasterState(DAGAppMasterState dagAppMasterState)
protected void startDAGAppMaster(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appContext)
throws IOException
IOExceptionprotected Thread createDAGAppMaster(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appContext)
protected DAGAppMaster createDAGAppMaster(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId, org.apache.hadoop.yarn.api.records.ContainerId cId, String currentHost, int nmPort, int nmHttpPort, org.apache.hadoop.yarn.util.Clock clock, long appSubmitTime, boolean isSession, String userDir, String[] localDirs, String[] logDirs, org.apache.hadoop.security.Credentials credentials, String jobUserName) throws IOException
IOExceptionpublic TezAppMasterStatus getAMStatus(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.UserGroupInformation ugi) throws TezException, com.google.protobuf.ServiceException, IOException
getAMStatus in class FrameworkClientTezExceptioncom.google.protobuf.ServiceExceptionIOExceptionpublic DAGClient submitDag(DAG dag, DAGClientAMProtocolRPC.SubmitDAGRequestProto request, String clientName, org.apache.hadoop.yarn.api.records.ApplicationId sessionAppId, long clientTimeout, org.apache.hadoop.security.UserGroupInformation ugi, TezConfiguration tezConf) throws IOException, TezException, DAGSubmissionTimedOut
submitDag in class FrameworkClientIOExceptionTezExceptionDAGSubmissionTimedOutpublic boolean shutdownSession(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.yarn.api.records.ApplicationId sessionAppId,
org.apache.hadoop.security.UserGroupInformation ugi)
throws TezException,
IOException,
com.google.protobuf.ServiceException
shutdownSession in class FrameworkClientTezExceptionIOExceptioncom.google.protobuf.ServiceExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.