public class ShellActionExecutor extends JavaActionExecutor
ActionExecutor.Context, ActionExecutor.RETRYPOLICY
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, CONF_HADOOP_YARN_UBER_MODE, HADOOP_CHILD_JAVA_ENV, HADOOP_CHILD_JAVA_OPTS, HADOOP_JOB_CLASSLOADER, HADOOP_JOB_TRACKER, HADOOP_JOB_TRACKER_2, HADOOP_MAP_JAVA_ENV, HADOOP_MAP_JAVA_OPTS, HADOOP_MAP_MEMORY_MB, HADOOP_NAME_NODE, HADOOP_REDUCE_JAVA_OPTS, HADOOP_USER, HADOOP_USER_CLASSPATH_FIRST, HADOOP_YARN_RM, HADOOP_YARN_TIMELINE_SERVICE_ENABLED, HADOOP_YARN_UBER_MODE, LOG, MAX_EXTERNAL_STATS_SIZE, OOZIE_COMMON_LIBDIR, YARN_AM_COMMAND_OPTS, YARN_AM_ENV, YARN_AM_RESOURCE_MB, YARN_MEMORY_MB_MIN
ACTION_RETRY_INTERVAL, ACTION_RETRY_POLICY, CONF_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, createBaseHadoopConf, createJobClient, end, extractHeapSizeMB, getActionCredentialsProperties, getActionData, getActualExternalId, getCaptureOutput, getCommonLauncherClasses, getCredProperties, getDefaultShareLibName, getMaxExternalStatsSize, getRunningJob, getShareLibFilesForActionConf, getShareLibNames, initActionType, isCompleted, kill, loadHadoopDefaultResources, parseJobXmlAndConfiguration, prepareActionDir, readExternalChildIDs, setActionCompletionData, setCredentialPropertyToActionConf, setCredentialTokens, setLibFilesArchives, start, submitLauncher
convertException, disableInit, enableInit, getActionDir, getActionDirPath, getActionSignal, getMaxRetries, getOozieConf, getOozieRuntimeDir, getOozieSystemId, getRetryInterval, getRetryPolicy, getType, registerError, resetInitInfo, setMaxRetries, setRetryInterval, setRetryPolicy
public String OOZIE_LAUNCHER_CHILD_ENV
public ShellActionExecutor()
public List<Class> getLauncherClasses()
getLauncherClasses
in class JavaActionExecutor
protected String getLauncherMain(org.apache.hadoop.conf.Configuration launcherConf, org.jdom.Element actionXml)
getLauncherMain
in class JavaActionExecutor
protected 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
- ActionExecutorException
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) throws ActionExecutorException
ActionExecutorException
protected void addDefaultChildEnv(org.apache.hadoop.conf.Configuration conf)
conf
- Copyright © 2015 Apache Software Foundation. All Rights Reserved.