@InterfaceAudience.Private @InterfaceStability.Unstable public final class CommitUtilsWithMR extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
formatAppAttemptDir(int attemptId)
Format the application attempt directory.
|
static int |
getAppAttemptId(org.apache.hadoop.mapreduce.JobContext context)
Get the Application Attempt ID for this job.
|
static org.apache.hadoop.fs.Path |
getBaseMagicTaskAttemptPath(org.apache.hadoop.mapreduce.TaskAttemptContext context,
org.apache.hadoop.fs.Path dest)
Get the base Magic attempt path, without any annotations to mark relative
references.
|
static String |
getConfigurationOption(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hadoop.conf.Configuration fsConf,
String key,
String defVal)
Get a configuration option, with any value in the job configuration
taking priority over that in the filesystem.
|
static org.apache.hadoop.fs.Path |
getMagicJobAttemptPath(int appAttemptId,
org.apache.hadoop.fs.Path dest)
Compute the "magic" path for a job attempt.
|
static org.apache.hadoop.fs.Path |
getMagicJobAttemptsPath(org.apache.hadoop.fs.Path out)
Get the location of magic job attempts.
|
static org.apache.hadoop.fs.Path |
getMagicTaskAttemptPath(org.apache.hadoop.mapreduce.TaskAttemptContext context,
org.apache.hadoop.fs.Path dest)
Compute the path where the output of a task attempt is stored until
that task is committed.
|
static org.apache.hadoop.fs.Path |
getMagicTaskAttemptsPath(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hadoop.fs.Path dest)
Compute the path where the output of magic task attempts are stored.
|
static org.apache.hadoop.fs.Path |
getTempJobAttemptPath(int appAttemptId,
org.apache.hadoop.fs.Path out)
Compute a path for temporary data associated with a job.
|
static org.apache.hadoop.fs.Path |
getTempTaskAttemptPath(org.apache.hadoop.mapreduce.TaskAttemptContext context,
org.apache.hadoop.fs.Path out)
Compute the path where the output of a given job attempt will be placed.
|
static String |
jobIdString(org.apache.hadoop.mapreduce.JobContext context)
Get a string value of a job ID; returns meaningful text if there is no ID.
|
static String |
jobName(org.apache.hadoop.mapreduce.JobContext context)
Get a job name; returns meaningful text if there is no name.
|
public static org.apache.hadoop.fs.Path getMagicJobAttemptsPath(org.apache.hadoop.fs.Path out)
out - the base output directory.public static int getAppAttemptId(org.apache.hadoop.mapreduce.JobContext context)
context - the context to look inpublic static org.apache.hadoop.fs.Path getMagicJobAttemptPath(int appAttemptId,
org.apache.hadoop.fs.Path dest)
appAttemptId - the ID of the application attempt for this job.dest - the final output directorypublic static String formatAppAttemptDir(int attemptId)
attemptId - attempt IDpublic static org.apache.hadoop.fs.Path getMagicTaskAttemptsPath(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hadoop.fs.Path dest)
context - the context of the job with magic tasks.dest - destination of workpublic static org.apache.hadoop.fs.Path getMagicTaskAttemptPath(org.apache.hadoop.mapreduce.TaskAttemptContext context,
org.apache.hadoop.fs.Path dest)
context - the context of the task attempt.dest - The output path to commit work intopublic static org.apache.hadoop.fs.Path getBaseMagicTaskAttemptPath(org.apache.hadoop.mapreduce.TaskAttemptContext context,
org.apache.hadoop.fs.Path dest)
context - task context.dest - The output path to commit work intopublic static org.apache.hadoop.fs.Path getTempJobAttemptPath(int appAttemptId,
org.apache.hadoop.fs.Path out)
appAttemptId - the ID of the application attempt for this job.out - output directory of jobpublic static org.apache.hadoop.fs.Path getTempTaskAttemptPath(org.apache.hadoop.mapreduce.TaskAttemptContext context,
org.apache.hadoop.fs.Path out)
context - task contextout - output directory of jobpublic static String jobIdString(org.apache.hadoop.mapreduce.JobContext context)
context - job contextpublic static String jobName(org.apache.hadoop.mapreduce.JobContext context)
context - job contextpublic static String getConfigurationOption(org.apache.hadoop.mapreduce.JobContext context, org.apache.hadoop.conf.Configuration fsConf, String key, String defVal)
context - job/task contextfsConf - filesystem configuration. Get this from the FS to guarantee
per-bucket parameter propagationkey - key to look fordefVal - default valueCopyright © 2008–2021 Apache Software Foundation. All rights reserved.