@InterfaceAudience.Private
@InterfaceStability.Unstable
public class MRApps
extends org.apache.hadoop.yarn.util.Apps
| Modifier and Type | Class and Description |
|---|---|
static class |
MRApps.TaskAttemptStateUI |
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
MRApps() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addLog4jSystemProperties(String logLevel,
long logSize,
List<String> vargs)
Add the JVM system properties necessary to configure
ContainerLogAppender. |
static org.apache.hadoop.fs.Path |
getEndJobCommitFailureFile(org.apache.hadoop.conf.Configuration conf,
String user,
JobId jobId) |
static org.apache.hadoop.fs.Path |
getEndJobCommitSuccessFile(org.apache.hadoop.conf.Configuration conf,
String user,
JobId jobId) |
static String |
getJobFile(org.apache.hadoop.conf.Configuration conf,
String user,
org.apache.hadoop.mapreduce.JobID jobId) |
static org.apache.hadoop.fs.Path |
getStagingAreaDir(org.apache.hadoop.conf.Configuration conf,
String user) |
static org.apache.hadoop.fs.Path |
getStartJobCommitFile(org.apache.hadoop.conf.Configuration conf,
String user,
JobId jobId) |
static void |
setClasspath(Map<String,String> environment,
org.apache.hadoop.conf.Configuration conf) |
static void |
setJobClassLoader(org.apache.hadoop.conf.Configuration conf)
Sets a
ApplicationClassLoader on the given configuration and as
the context classloader, if
MRJobConfig.MAPREDUCE_JOB_CLASSLOADER is set to true, and
the APP_CLASSPATH environment variable is set. |
static void |
setupDistributedCache(org.apache.hadoop.conf.Configuration conf,
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources) |
static MRApps.TaskAttemptStateUI |
taskAttemptState(String attemptStateStr) |
static String |
taskSymbol(TaskType type) |
static TaskType |
taskType(String symbol) |
static JobId |
toJobID(String jid) |
static String |
toString(JobId jid) |
static String |
toString(TaskAttemptId taid) |
static String |
toString(TaskId tid) |
static TaskAttemptId |
toTaskAttemptID(String taid) |
static TaskId |
toTaskID(String tid) |
public static String toString(TaskAttemptId taid)
public static TaskAttemptId toTaskAttemptID(String taid)
public static MRApps.TaskAttemptStateUI taskAttemptState(String attemptStateStr)
public static void setClasspath(Map<String,String> environment, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic static void setJobClassLoader(org.apache.hadoop.conf.Configuration conf)
throws IOException
ApplicationClassLoader on the given configuration and as
the context classloader, if
MRJobConfig.MAPREDUCE_JOB_CLASSLOADER is set to true, and
the APP_CLASSPATH environment variable is set.conf - IOExceptionpublic static org.apache.hadoop.fs.Path getStagingAreaDir(org.apache.hadoop.conf.Configuration conf,
String user)
public static String getJobFile(org.apache.hadoop.conf.Configuration conf, String user, org.apache.hadoop.mapreduce.JobID jobId)
public static org.apache.hadoop.fs.Path getEndJobCommitSuccessFile(org.apache.hadoop.conf.Configuration conf,
String user,
JobId jobId)
public static org.apache.hadoop.fs.Path getEndJobCommitFailureFile(org.apache.hadoop.conf.Configuration conf,
String user,
JobId jobId)
public static org.apache.hadoop.fs.Path getStartJobCommitFile(org.apache.hadoop.conf.Configuration conf,
String user,
JobId jobId)
public static void setupDistributedCache(org.apache.hadoop.conf.Configuration conf,
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources)
throws IOException
IOExceptionpublic static void addLog4jSystemProperties(String logLevel, long logSize, List<String> vargs)
ContainerLogAppender.logLevel - the desired log level (eg INFO/WARN/DEBUG)logSize - See ContainerLogAppender.setTotalLogFileSize(long)vargs - the argument list to append toCopyright © 2013 Apache Software Foundation. All Rights Reserved.