public class LauncherDelegator extends TempletonDelegator
Modifier and Type | Class and Description |
---|---|
static class |
LauncherDelegator.JobType |
Modifier and Type | Field and Description |
---|---|
protected String |
runAs |
appConf, ARCHIVES, FILES
Constructor and Description |
---|
LauncherDelegator(AppConfig appConf) |
Modifier and Type | Method and Description |
---|---|
static void |
addCacheFiles(List<String> args,
AppConfig appConf)
Add files to the Distributed Cache for the controller job.
|
static void |
addDef(List<String> args,
String name,
String val)
Add a Hadoop command line definition to args if the value is
not null.
|
EnqueueBean |
enqueueController(String user,
Map<String,Object> userArgs,
String callback,
List<String> args)
Enqueue the TempletonControllerJob directly calling doAs.
|
List<String> |
makeLauncherArgs(AppConfig appConf,
String statusdir,
String completedUrl,
List<String> copyFiles,
boolean enablelog,
Boolean enableJobReconnect,
LauncherDelegator.JobType jobType) |
static String |
makeOverrideClasspath(AppConfig appConf)
Create the override classpath, which will be added to
HADOOP_CLASSPATH at runtime by the controller job.
|
void |
registerJob(String id,
String user,
String callback,
Map<String,Object> userArgs) |
protected String runAs
public LauncherDelegator(AppConfig appConf)
public void registerJob(String id, String user, String callback, Map<String,Object> userArgs) throws IOException
IOException
public EnqueueBean enqueueController(String user, Map<String,Object> userArgs, String callback, List<String> args) throws NotAuthorizedException, BusyException, IOException, QueueException
public List<String> makeLauncherArgs(AppConfig appConf, String statusdir, String completedUrl, List<String> copyFiles, boolean enablelog, Boolean enableJobReconnect, LauncherDelegator.JobType jobType)
public static void addCacheFiles(List<String> args, AppConfig appConf)
public static String makeOverrideClasspath(AppConfig appConf)
Copyright © 2017 The Apache Software Foundation. All rights reserved.