public class LauncherMapperHelper extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OOZIE_ACTION_YARN_TAG |
| Constructor and Description |
|---|
LauncherMapperHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,java.lang.String> |
getActionData(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path actionDir,
org.apache.hadoop.conf.Configuration conf)
Utility function to load the contents of action data sequence file into
memory object
|
static org.apache.hadoop.fs.Path |
getActionDataSequenceFilePath(org.apache.hadoop.fs.Path actionDir)
Get the sequence file path storing all action data
|
static java.lang.String |
getActionYarnTag(org.apache.hadoop.conf.Configuration conf,
java.lang.String parentId,
org.apache.oozie.client.WorkflowAction wfAction) |
static java.lang.String |
getRecoveryId(org.apache.hadoop.conf.Configuration launcherConf,
org.apache.hadoop.fs.Path actionDir,
java.lang.String recoveryId) |
static java.lang.String |
getTag(java.lang.String launcherTag) |
static boolean |
hasExternalChildJobs(java.util.Map<java.lang.String,java.lang.String> actionData)
Determine whether action has external child jobs or not
|
static boolean |
hasIdSwap(java.util.Map<java.lang.String,java.lang.String> actionData)
Determine whether action has new id (id swap) or not
|
static boolean |
hasOutputData(java.util.Map<java.lang.String,java.lang.String> actionData)
Determine whether action has output data or not
|
static boolean |
hasStatsData(java.util.Map<java.lang.String,java.lang.String> actionData)
Determine whether action has external stats or not
|
static boolean |
isMainDone(org.apache.hadoop.mapred.RunningJob runningJob) |
static boolean |
isMainSuccessful(org.apache.hadoop.mapred.RunningJob runningJob) |
static void |
setupLauncherInfo(org.apache.hadoop.mapred.JobConf launcherConf,
java.lang.String jobId,
java.lang.String actionId,
org.apache.hadoop.fs.Path actionDir,
java.lang.String recoveryId,
org.apache.hadoop.conf.Configuration actionConf,
java.lang.String prepareXML) |
static void |
setupLauncherURIHandlerConf(org.apache.hadoop.conf.Configuration launcherConf) |
static void |
setupMainArguments(org.apache.hadoop.conf.Configuration launcherConf,
java.lang.String[] args) |
static void |
setupMainClass(org.apache.hadoop.conf.Configuration launcherConf,
java.lang.String javaMainClass) |
static void |
setupMaxExternalStatsSize(org.apache.hadoop.conf.Configuration launcherConf,
int maxStatsData)
Set the maximum value of stats data
|
static void |
setupMaxFSGlob(org.apache.hadoop.conf.Configuration launcherConf,
int fsGlobMax)
Set the maximum number of globbed files/dirs
|
static void |
setupMaxOutputData(org.apache.hadoop.conf.Configuration launcherConf,
int maxOutputData) |
static void |
setupYarnRestartHandling(org.apache.hadoop.mapred.JobConf launcherJobConf,
org.apache.hadoop.conf.Configuration actionConf,
java.lang.String launcherTag,
long launcherTime) |
public static final java.lang.String OOZIE_ACTION_YARN_TAG
public LauncherMapperHelper()
public static java.lang.String getRecoveryId(org.apache.hadoop.conf.Configuration launcherConf, org.apache.hadoop.fs.Path actionDir, java.lang.String recoveryId) throws HadoopAccessorException, java.io.IOException
HadoopAccessorExceptionjava.io.IOExceptionpublic static void setupMainClass(org.apache.hadoop.conf.Configuration launcherConf, java.lang.String javaMainClass)
public static void setupLauncherURIHandlerConf(org.apache.hadoop.conf.Configuration launcherConf)
public static void setupMainArguments(org.apache.hadoop.conf.Configuration launcherConf, java.lang.String[] args)
public static void setupMaxOutputData(org.apache.hadoop.conf.Configuration launcherConf, int maxOutputData)
public static void setupMaxExternalStatsSize(org.apache.hadoop.conf.Configuration launcherConf, int maxStatsData)
launcherConf - the oozie launcher configurationmaxStatsData - the maximum allowed size of stats datapublic static void setupMaxFSGlob(org.apache.hadoop.conf.Configuration launcherConf, int fsGlobMax)
launcherConf - the oozie launcher configurationfsGlobMax - the maximum number of files/dirs for FS operationpublic static void setupLauncherInfo(org.apache.hadoop.mapred.JobConf launcherConf, java.lang.String jobId, java.lang.String actionId, org.apache.hadoop.fs.Path actionDir, java.lang.String recoveryId, org.apache.hadoop.conf.Configuration actionConf, java.lang.String prepareXML) throws java.io.IOException, HadoopAccessorException
java.io.IOExceptionHadoopAccessorExceptionpublic static void setupYarnRestartHandling(org.apache.hadoop.mapred.JobConf launcherJobConf, org.apache.hadoop.conf.Configuration actionConf, java.lang.String launcherTag, long launcherTime) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionpublic static java.lang.String getTag(java.lang.String launcherTag) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionpublic static boolean isMainDone(org.apache.hadoop.mapred.RunningJob runningJob) throws java.io.IOException
java.io.IOExceptionpublic static boolean isMainSuccessful(org.apache.hadoop.mapred.RunningJob runningJob) throws java.io.IOException
java.io.IOExceptionpublic static boolean hasExternalChildJobs(java.util.Map<java.lang.String,java.lang.String> actionData) throws java.io.IOException
actionData - java.io.IOExceptionpublic static boolean hasOutputData(java.util.Map<java.lang.String,java.lang.String> actionData) throws java.io.IOException
actionData - java.io.IOExceptionpublic static boolean hasStatsData(java.util.Map<java.lang.String,java.lang.String> actionData) throws java.io.IOException
actionData - java.io.IOExceptionpublic static boolean hasIdSwap(java.util.Map<java.lang.String,java.lang.String> actionData) throws java.io.IOException
actionData - java.io.IOExceptionpublic static org.apache.hadoop.fs.Path getActionDataSequenceFilePath(org.apache.hadoop.fs.Path actionDir)
actionDir - public static java.util.Map<java.lang.String,java.lang.String> getActionData(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path actionDir, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException, java.lang.InterruptedException
fs - Action FilesystemactionDir - Pathconf - Configurationjava.io.IOExceptionjava.lang.InterruptedExceptionpublic static java.lang.String getActionYarnTag(org.apache.hadoop.conf.Configuration conf, java.lang.String parentId, org.apache.oozie.client.WorkflowAction wfAction)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.