public class ShellActionExecutor extends JavaActionExecutor
ActionExecutor.Context| Modifier and Type | Field and Description |
|---|---|
String |
OOZIE_LAUNCHER_CHILD_ENV
Config property name to set the child environment
|
ACL_MODIFY_JOB, ACL_VIEW_JOB, HADOOP_CHILD_JAVA_ENV, HADOOP_CHILD_JAVA_OPTS, HADOOP_JOB_TRACKER, HADOOP_JOB_TRACKER_2, HADOOP_MAP_JAVA_ENV, HADOOP_MAP_JAVA_OPTS, HADOOP_MAP_MEMORY_MB, HADOOP_NAME_NODE, HADOOP_YARN_RM, HADOOP_YARN_UBER_MODE, LOG, MAX_EXTERNAL_STATS_SIZE, MAX_EXTERNAL_STATS_SIZE_DEFAULT, OOZIE_COMMON_LIBDIR, YARN_AM_COMMAND_OPTS, YARN_AM_ENV, YARN_AM_RESOURCE_MB, YARN_MEMORY_MB_MINCONF_PREFIX, ERROR_OTHER, MAX_RETRIES, requiresNNJT, RETRY_INTERVAL| Constructor and Description |
|---|
ShellActionExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaultChildEnv(org.apache.hadoop.conf.Configuration conf)
This method sets the PATH to current working directory for the launched
map task from where shell command will run.
|
List<Class> |
getLauncherClasses() |
protected String |
getLauncherMain(org.apache.hadoop.conf.Configuration launcherConf,
org.jdom.Element actionXml) |
protected void |
setListInConf(String tag,
org.jdom.Element actionXml,
org.apache.hadoop.conf.Configuration actionConf,
String key,
boolean checkKeyValue)
This method read a list of tag from an XML element and set the
Configuration accordingly
|
protected org.apache.hadoop.conf.Configuration |
setupLauncherConf(org.apache.hadoop.conf.Configuration conf,
org.jdom.Element actionXml,
org.apache.hadoop.fs.Path appPath,
ActionExecutor.Context context) |
addActionLibs, addShareLib, addSystemShareLibForAction, check, createBaseHadoopConf, createJobClient, end, extractHeapSizeMB, getActionCredentialsProperties, getActionData, getCaptureOutput, getCommonLauncherClasses, getCredProperties, getDefaultShareLibName, getMaxExternalStatsSize, getRunningJob, getShareLibNames, initActionType, isCompleted, kill, parseJobXmlAndConfiguration, prepareActionDir, setActionCompletionData, setCredentialPropertyToActionConf, setCredentialTokens, setLibFilesArchives, start, submitLauncherconvertException, disableInit, enableInit, getActionDir, getActionDirPath, getActionSignal, getMaxRetries, getOozieConf, getOozieRuntimeDir, getOozieSystemId, getRetryInterval, getType, registerError, resetInitInfo, setMaxRetries, setRetryIntervalpublic String OOZIE_LAUNCHER_CHILD_ENV
public ShellActionExecutor()
public List<Class> getLauncherClasses()
getLauncherClasses in class JavaActionExecutorprotected String getLauncherMain(org.apache.hadoop.conf.Configuration launcherConf, org.jdom.Element actionXml)
getLauncherMain in class JavaActionExecutorprotected void setListInConf(String tag, org.jdom.Element actionXml, org.apache.hadoop.conf.Configuration actionConf, String key, boolean checkKeyValue) throws ActionExecutorException
tag - actionXml - actionConf - key - checkKeyValue - ActionExecutorExceptionprotected org.apache.hadoop.conf.Configuration setupLauncherConf(org.apache.hadoop.conf.Configuration conf, org.jdom.Element actionXml, org.apache.hadoop.fs.Path appPath, ActionExecutor.Context context) throws ActionExecutorException
ActionExecutorExceptionprotected void addDefaultChildEnv(org.apache.hadoop.conf.Configuration conf)
conf - Copyright © 2014 Apache Software Foundation. All Rights Reserved.