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 org.apache.hadoop.mapred.JobConf |
jobconf |
protected static org.slf4j.Logger |
LOG |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkSource(org.apache.hadoop.conf.Configuration conf,
List<org.apache.hadoop.fs.Path> srcs)
Sanity check for source
|
org.apache.hadoop.mapred.JobConf |
getConf() |
protected static String |
getRandomId() |
static void |
main(String[] args) |
protected static List<String> |
readFile(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path inputfile) |
protected static String |
readString(DataInput in) |
int |
run(String[] args)
This is the main driver for recursively changing files properties.
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
protected static void |
writeString(DataOutput out,
String s) |
protected static final org.slf4j.Logger LOG
protected org.apache.hadoop.mapred.JobConf jobconf
public int run(String[] args) throws Exception
Exceptionpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.mapred.JobConf getConf()
getConf in interface org.apache.hadoop.conf.Configurableprotected static String getRandomId()
protected static void checkSource(org.apache.hadoop.conf.Configuration conf,
List<org.apache.hadoop.fs.Path> srcs)
throws org.apache.hadoop.mapred.InvalidInputException
org.apache.hadoop.mapred.InvalidInputExceptionprotected static String readString(DataInput in) throws IOException
IOExceptionprotected static void writeString(DataOutput out, String s) throws IOException
IOExceptionprotected static List<String> readFile(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path inputfile) throws IOException
IOExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.