public class DistCh extends Object
限定符和类型 | 类和说明 |
---|---|
static class |
DistTool.DuplicationException
An exception class for duplicated source files.
|
限定符和类型 | 方法和说明 |
---|---|
protected static void |
checkSource(Configuration conf,
List<Path> srcs)
Sanity check for source
|
JobConf |
getConf()
Return the configuration used by this object.
|
protected static String |
getRandomId() |
static void |
main(String[] args) |
protected static List<String> |
readFile(Configuration conf,
Path inputfile) |
protected static String |
readString(DataInput in) |
int |
run(String[] args)
This is the main driver for recursively changing files properties.
|
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
protected static void |
writeString(DataOutput out,
String s) |
protected static final org.apache.commons.logging.Log LOG
protected JobConf jobconf
public int run(String[] args) throws Exception
args
- command specific arguments.Exception
public void setConf(Configuration conf)
setConf
在接口中 Configurable
public JobConf getConf()
getConf
在接口中 Configurable
protected static String getRandomId()
protected static void checkSource(Configuration conf, List<Path> srcs) throws InvalidInputException
protected static String readString(DataInput in) throws IOException
IOException
protected static void writeString(DataOutput out, String s) throws IOException
IOException
protected static List<String> readFile(Configuration conf, Path inputfile) throws IOException
IOException
Copyright © 2009 The Apache Software Foundation