public class DistCh extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DistTool.DuplicationException
An exception class for duplicated source files.
|
Modifier and Type | Field and Description |
---|---|
protected JobConf |
jobconf |
protected static org.apache.commons.logging.Log |
LOG |
Modifier and Type | Method and Description |
---|---|
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
in interface Configurable
public JobConf getConf()
getConf
in interface Configurable
protected static String getRandomId()
protected static void checkSource(Configuration conf, List<Path> srcs) throws InvalidInputException
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 © 2013 Apache Software Foundation. All rights reserved.