|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Public @InterfaceStability.Evolving public interface JobContext
A read-only view of the job that is provided to the tasks while they are running.
Field Summary |
---|
Method Summary | |
---|---|
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.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()
Deprecated. the array returned only includes the items the were downloaded. There is no way to map this to what is returned by getCacheArchives() . |
org.apache.hadoop.fs.Path[] |
getLocalCacheFiles()
Deprecated. the array returned only includes the items the were downloaded. There is no way to map this to what is returned by getCacheFiles() . |
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 map task, as specified by the mapred.map.max.attempts
property. |
int |
getMaxReduceAttempts()
Get the configured number of maximum attempts that will be made to run a reduce task, as specified by the mapred.reduce.max.attempts
property. |
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()
Get the profiler configuration arguments. |
org.apache.hadoop.conf.Configuration.IntegerRanges |
getProfileTaskRange(boolean isMap)
Get the range of maps or reduces to profile. |
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()
Deprecated. |
boolean |
getTaskCleanupNeeded()
Get whether task-cleanup is needed for the job |
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. |
Method Detail |
---|
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
IOException
Class<?> getOutputKeyClass()
Class<?> getOutputValueClass()
Class<?> getMapOutputKeyClass()
Class<?> getMapOutputValueClass()
String getJobName()
Class<? extends InputFormat<?,?>> getInputFormatClass() throws ClassNotFoundException
InputFormat
class for the job.
InputFormat
class for the job.
ClassNotFoundException
Class<? extends Mapper<?,?,?,?>> getMapperClass() throws ClassNotFoundException
Mapper
class for the job.
Mapper
class for the job.
ClassNotFoundException
Class<? extends Reducer<?,?,?,?>> getCombinerClass() throws ClassNotFoundException
ClassNotFoundException
Class<? extends Reducer<?,?,?,?>> getReducerClass() throws ClassNotFoundException
Reducer
class for the job.
Reducer
class for the job.
ClassNotFoundException
Class<? extends OutputFormat<?,?>> getOutputFormatClass() throws ClassNotFoundException
OutputFormat
class for the job.
OutputFormat
class for the job.
ClassNotFoundException
Class<? extends Partitioner<?,?>> getPartitionerClass() throws ClassNotFoundException
Partitioner
class for the job.
Partitioner
class for the job.
ClassNotFoundException
org.apache.hadoop.io.RawComparator<?> getSortComparator()
RawComparator
comparator used to compare keys.
RawComparator
comparator used to compare keys.String getJar()
org.apache.hadoop.io.RawComparator<?> getGroupingComparator()
RawComparator
comparator for
grouping keys of inputs to the reduce.
for details.
boolean getJobSetupCleanupNeeded()
boolean getTaskCleanupNeeded()
boolean getProfileEnabled()
String getProfileParams()
org.apache.hadoop.conf.Configuration.IntegerRanges getProfileTaskRange(boolean isMap)
isMap
- is the task a map?
String getUser()
@Deprecated boolean getSymlink()
org.apache.hadoop.fs.Path[] getArchiveClassPaths()
URI[] getCacheArchives() throws IOException
IOException
URI[] getCacheFiles() throws IOException
IOException
@Deprecated org.apache.hadoop.fs.Path[] getLocalCacheArchives() throws IOException
getCacheArchives()
.
IOException
@Deprecated org.apache.hadoop.fs.Path[] getLocalCacheFiles() throws IOException
getCacheFiles()
.
IOException
org.apache.hadoop.fs.Path[] getFileClassPaths()
String[] getArchiveTimestamps()
IOException
String[] getFileTimestamps()
IOException
int getMaxMapAttempts()
mapred.map.max.attempts
property. If this property is not already set, the default is 4 attempts.
int getMaxReduceAttempts()
mapred.reduce.max.attempts
property. If this property is not already set, the default is 4 attempts.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |