|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.conf.Configuration
org.apache.hadoop.mapred.JobConf
public class JobConf
A map/reduce job configuration. This names the Mapper
, combiner
(if any), Partitioner
, Reducer
, InputFormat
, and
OutputFormat
implementations to be used. It also indicates the set
of input files, and where the output files should be written.
Constructor Summary | |
---|---|
JobConf()
Construct a map/reduce job configuration. |
|
JobConf(Class exampleClass)
Construct a map/reduce job configuration. |
|
JobConf(Configuration conf)
Construct a map/reduce job configuration. |
|
JobConf(Configuration conf,
Class exampleClass)
Construct a map/reduce job configuration. |
|
JobConf(Path config)
Construct a map/reduce configuration. |
|
JobConf(String config)
Construct a map/reduce configuration. |
Methods inherited from class org.apache.hadoop.conf.Configuration |
---|
addDefaultResource, addDefaultResource, addFinalResource, addFinalResource, get, get, get, getBoolean, getClass, getClass, getConfResourceAsInputStream, getConfResourceAsReader, getFile, getFloat, getInt, getLocalPath, getLong, getObject, getResource, getStrings, main, set, setBoolean, setClass, setInt, setLong, setObject, toString, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JobConf()
public JobConf(Class exampleClass)
conf
- a Configuration whose settings will be inherited.exampleClass
- a class whose containing jar is used as the job's jar.public JobConf(Configuration conf)
conf
- a Configuration whose settings will be inherited.public JobConf(Configuration conf, Class exampleClass)
conf
- a Configuration whose settings will be inherited.exampleClass
- a class whose containing jar is used as the job's jar.public JobConf(String config)
config
- a Configuration-format XML job description filepublic JobConf(Path config)
config
- a Configuration-format XML job description fileMethod Detail |
---|
public String getJar()
public void setJar(String jar)
public Path getSystemDir()
public String[] getLocalDirs() throws IOException
IOException
public void deleteLocalFiles() throws IOException
IOException
public void deleteLocalFiles(String subdir) throws IOException
IOException
public File getLocalFile(String subdir, String name) throws IOException
getLocalPath(String)
instead.
IOException
public Path getLocalPath(String pathString) throws IOException
IOException
public void setInputDir(File dir)
setInputPath(Path)
instead.
public void setInputPath(Path dir)
public void addInputDir(File dir)
addInputPath(Path)
instead.
public void addInputPath(Path dir)
public Path[] getInputPaths()
public String getUser()
public void setUser(String user)
user
- the usernamepublic void setWorkingDirectory(Path dir)
dir
- the new current working directorypublic Path getWorkingDirectory()
public File getOutputDir()
getOutputPath()
instead.
public Path getOutputPath()
public void setOutputDir(File dir)
setOutputPath(Path)
instead.
public void setOutputPath(Path dir)
public InputFormat getInputFormat()
public void setInputFormat(Class theClass)
public OutputFormat getOutputFormat()
public void setOutputFormat(Class theClass)
public Class getInputKeyClass()
public void setInputKeyClass(Class theClass)
public Class getInputValueClass()
public void setInputValueClass(Class theClass)
public Class getOutputKeyClass()
public void setOutputKeyClass(Class theClass)
public WritableComparator getOutputKeyComparator()
public void setOutputKeyComparatorClass(Class theClass)
public Class getOutputValueClass()
public void setOutputValueClass(Class theClass)
public Class getMapperClass()
public void setMapperClass(Class theClass)
public Class getMapRunnerClass()
public void setMapRunnerClass(Class theClass)
public Class getPartitionerClass()
public void setPartitionerClass(Class theClass)
public Class getReducerClass()
public void setReducerClass(Class theClass)
public Class getCombinerClass()
public void setCombinerClass(Class theClass)
public boolean getSpeculativeExecution()
public void setSpeculativeExecution(boolean new_val)
public int getNumMapTasks()
public void setNumMapTasks(int n)
public int getNumReduceTasks()
public void setNumReduceTasks(int n)
public String getJobName()
public void setJobName(String name)
name
- the job's new namepublic Object newInstance(Class theClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |