|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.tools.DistCh
public class DistCh
A Map-reduce program to recursively change files properties such as owner, group and permission.
| Nested Class Summary | |
|---|---|
static class |
DistTool.DuplicationException
An exception class for duplicated source files. |
| Field Summary | |
|---|---|
protected org.apache.hadoop.mapred.JobConf |
jobconf
|
protected static org.apache.commons.logging.Log |
LOG
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log LOG
protected org.apache.hadoop.mapred.JobConf jobconf
| Method Detail |
|---|
public int run(String[] args)
throws Exception
Exception
public static void main(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.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(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path inputfile)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||