|
||||||||||
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 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 |
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 JobConf jobconf
Method Detail |
---|
public int run(String[] args) throws Exception
Exception
public static void main(String[] args) throws Exception
Exception
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public JobConf getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
protected static String getRandomId()
protected static void checkSource(org.apache.hadoop.conf.Configuration conf, List<org.apache.hadoop.fs.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(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 |