public interface JobContext
| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_ARCHIVES_VISIBILITIES |
static String |
CACHE_FILE_VISIBILITIES |
static String |
COMBINE_CLASS_ATTR |
static String |
INPUT_FORMAT_CLASS_ATTR |
static String |
JAR_UNPACK_PATTERN |
static String |
JOB_ACL_MODIFY_JOB |
static String |
JOB_ACL_VIEW_JOB |
static String |
JOB_CANCEL_DELEGATION_TOKEN |
static String |
JOB_NAMENODES |
static String |
MAP_CLASS_ATTR |
static String |
MAP_MEMORY_PHYSICAL_MB |
static String |
MAP_OUTPUT_COLLECTOR_CLASS_ATTR |
static String |
MAPREDUCE_TASK_CLASSPATH_PRECEDENCE |
static String |
OUTPUT_FORMAT_CLASS_ATTR |
static String |
PARTITIONER_CLASS_ATTR |
static String |
REDUCE_CLASS_ATTR |
static String |
REDUCE_MEMORY_PHYSICAL_MB |
static String |
SHUFFLE_CONSUMER_PLUGIN_ATTR |
static String |
USER_LOG_RETAIN_HOURS |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.Path[] |
getArchiveClassPaths()
Get the archive entries in classpath as an array of Path
|
String[] |
getArchiveTimestamps()
Get the timestamps of the archives.
|
URI[] |
getCacheArchives()
Get cache archives set in the Configuration
|
URI[] |
getCacheFiles()
Get cache files set in the Configuration
|
Class<? extends Reducer<?,?,?,?>> |
getCombinerClass()
Get the combiner class for the job.
|
org.apache.hadoop.io.RawComparator<?> |
getCombinerKeyGroupingComparator()
Get the user defined
RawComparator comparator for
grouping keys of inputs to the combiner. |
org.apache.hadoop.conf.Configuration |
getConfiguration()
Return the configuration for the job.
|
org.apache.hadoop.security.Credentials |
getCredentials()
Get credentials for the job.
|
org.apache.hadoop.fs.Path[] |
getFileClassPaths()
Get the file entries in classpath as an array of Path
|
String[] |
getFileTimestamps()
Get the timestamps of the files.
|
org.apache.hadoop.io.RawComparator<?> |
getGroupingComparator()
Get the user defined
RawComparator comparator for
grouping keys of inputs to the reduce. |
Class<? extends InputFormat<?,?>> |
getInputFormatClass()
Get the
InputFormat class for the job. |
String |
getJar()
Get the pathname of the job's jar.
|
JobID |
getJobID()
Get the unique ID for the job.
|
String |
getJobName()
Get the user-specified job name.
|
boolean |
getJobSetupCleanupNeeded()
Get whether job-setup and job-cleanup is needed for the job
|
org.apache.hadoop.fs.Path[] |
getLocalCacheArchives()
Return the path array of the localized caches
|
org.apache.hadoop.fs.Path[] |
getLocalCacheFiles()
Return the path array of the localized files
|
Class<?> |
getMapOutputKeyClass()
Get the key class for the map output data.
|
Class<?> |
getMapOutputValueClass()
Get the value class for the map output data.
|
Class<? extends Mapper<?,?,?,?>> |
getMapperClass()
Get the
Mapper class for the job. |
int |
getMaxMapAttempts()
Get the configured number of maximum attempts that will be made to run a
|
int |
getMaxReduceAttempts()
Get the configured number of maximum attempts that will be made to run a
|
int |
getNumReduceTasks()
Get configured the number of reduce tasks for this job.
|
Class<? extends OutputFormat<?,?>> |
getOutputFormatClass()
Get the
OutputFormat class for the job. |
Class<?> |
getOutputKeyClass()
Get the key class for the job output data.
|
Class<?> |
getOutputValueClass()
Get the value class for job outputs.
|
Class<? extends Partitioner<?,?>> |
getPartitionerClass()
Get the
Partitioner class for the job. |
boolean |
getProfileEnabled()
Get whether the task profiling is enabled.
|
String |
getProfileParams() |
Class<? extends Reducer<?,?,?,?>> |
getReducerClass()
Get the
Reducer class for the job. |
org.apache.hadoop.io.RawComparator<?> |
getSortComparator()
Get the
RawComparator comparator used to compare keys. |
boolean |
getSymlink()
This method checks to see if symlinks are to be create for the
localized cache files in the current working directory
|
String |
getUser()
Get the reported username for this job.
|
org.apache.hadoop.fs.Path |
getWorkingDirectory()
Get the current working directory for the default file system.
|
boolean |
userClassesTakesPrecedence()
Get the boolean value for the property that specifies which classpath
takes precedence when tasks are launched.
|
static final String INPUT_FORMAT_CLASS_ATTR
static final String MAP_CLASS_ATTR
static final String MAP_OUTPUT_COLLECTOR_CLASS_ATTR
static final String COMBINE_CLASS_ATTR
static final String SHUFFLE_CONSUMER_PLUGIN_ATTR
static final String REDUCE_CLASS_ATTR
static final String OUTPUT_FORMAT_CLASS_ATTR
static final String PARTITIONER_CLASS_ATTR
static final String JAR_UNPACK_PATTERN
static final String JOB_NAMENODES
static final String JOB_ACL_VIEW_JOB
static final String JOB_ACL_MODIFY_JOB
static final String CACHE_FILE_VISIBILITIES
static final String CACHE_ARCHIVES_VISIBILITIES
static final String JOB_CANCEL_DELEGATION_TOKEN
static final String USER_LOG_RETAIN_HOURS
static final String MAPREDUCE_TASK_CLASSPATH_PRECEDENCE
static final String MAP_MEMORY_PHYSICAL_MB
static final String REDUCE_MEMORY_PHYSICAL_MB
org.apache.hadoop.conf.Configuration getConfiguration()
org.apache.hadoop.security.Credentials getCredentials()
JobID getJobID()
int getNumReduceTasks()
1.org.apache.hadoop.fs.Path getWorkingDirectory()
throws IOException
IOExceptionClass<?> getOutputKeyClass()
Class<?> getOutputValueClass()
Class<?> getMapOutputKeyClass()
Class<?> getMapOutputValueClass()
String getJobName()
boolean userClassesTakesPrecedence()
Class<? extends InputFormat<?,?>> getInputFormatClass() throws ClassNotFoundException
InputFormat class for the job.InputFormat class for the job.ClassNotFoundExceptionClass<? extends Mapper<?,?,?,?>> getMapperClass() throws ClassNotFoundException
Mapper class for the job.Mapper class for the job.ClassNotFoundExceptionClass<? extends Reducer<?,?,?,?>> getCombinerClass() throws ClassNotFoundException
ClassNotFoundExceptionClass<? extends Reducer<?,?,?,?>> getReducerClass() throws ClassNotFoundException
Reducer class for the job.Reducer class for the job.ClassNotFoundExceptionClass<? extends OutputFormat<?,?>> getOutputFormatClass() throws ClassNotFoundException
OutputFormat class for the job.OutputFormat class for the job.ClassNotFoundExceptionClass<? extends Partitioner<?,?>> getPartitionerClass() throws ClassNotFoundException
Partitioner class for the job.Partitioner class for the job.ClassNotFoundExceptionorg.apache.hadoop.io.RawComparator<?> getSortComparator()
RawComparator comparator used to compare keys.RawComparator comparator used to compare keys.String getJar()
org.apache.hadoop.io.RawComparator<?> getCombinerKeyGroupingComparator()
RawComparator comparator for
grouping keys of inputs to the combiner.Job.setCombinerKeyGroupingComparatorClass(Class)org.apache.hadoop.io.RawComparator<?> getGroupingComparator()
RawComparator comparator for
grouping keys of inputs to the reduce.for details.,
getCombinerKeyGroupingComparator()boolean getJobSetupCleanupNeeded()
boolean getProfileEnabled()
String getProfileParams()
String getUser()
boolean getSymlink()
org.apache.hadoop.fs.Path[] getArchiveClassPaths()
URI[] getCacheArchives() throws IOException
IOExceptionURI[] getCacheFiles() throws IOException
IOExceptionorg.apache.hadoop.fs.Path[] getLocalCacheArchives()
throws IOException
IOExceptionorg.apache.hadoop.fs.Path[] getLocalCacheFiles()
throws IOException
IOExceptionorg.apache.hadoop.fs.Path[] getFileClassPaths()
String[] getArchiveTimestamps()
IOExceptionString[] getFileTimestamps()
IOExceptionint getMaxMapAttempts()
int getMaxReduceAttempts()
Copyright © 2009 The Apache Software Foundation