public class YarnServiceJobSubmitter extends Object implements JobSubmitter
Modifier and Type | Field and Description |
---|---|
static String |
TENSORBOARD_QUICKLINK_LABEL |
Constructor and Description |
---|
YarnServiceJobSubmitter(ClientContext clientContext) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getComponentToLocalLaunchScriptPath() |
org.apache.hadoop.yarn.service.api.records.Service |
getServiceSpec() |
protected String |
getUserName() |
org.apache.hadoop.yarn.api.records.ApplicationId |
submitJob(RunJobParameters parameters)
Submit job to cluster
|
String |
zipDir(String srcDir,
String dstFile) |
public static final String TENSORBOARD_QUICKLINK_LABEL
public YarnServiceJobSubmitter(ClientContext clientContext)
protected String getUserName()
public String zipDir(String srcDir, String dstFile) throws IOException
IOException
public org.apache.hadoop.yarn.api.records.ApplicationId submitJob(RunJobParameters parameters) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
submitJob
in interface JobSubmitter
parameters
- run job parametersIOException
- for other issues.org.apache.hadoop.yarn.exceptions.YarnException
- for issues while contacting YARN daemonspublic org.apache.hadoop.yarn.service.api.records.Service getServiceSpec()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.