|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.util.CopyFiles
public class CopyFiles
A Map-reduce program to recursively copy directories between different file-systems.
Nested Class Summary | |
---|---|
static class |
CopyFiles.FSCopyFilesMapper
FSCopyFilesMapper: The mapper for copying files between FileSystems. |
Constructor Summary | |
---|---|
CopyFiles()
Deprecated. |
|
CopyFiles(Configuration conf)
|
Method Summary | |
---|---|
static void |
copy(Configuration conf,
List<Path> srcPaths,
Path destPath,
Path logPath,
EnumSet<org.apache.hadoop.util.CopyFiles.cpOpts> flags)
Driver to copy srcPath to destPath depending on required protocol. |
static void |
copy(Configuration conf,
String srcPath,
String destPath,
Path logPath,
boolean srcAsList,
boolean ignoreReadFailures)
Deprecated. |
Configuration |
getConf()
Return the configuration used by this object. |
static void |
main(String[] args)
|
static Path |
makeRelative(Path root,
Path absPath)
Make a path relative with respect to a root path. |
int |
run(String[] args)
This is the main driver for recursively copying directories across file systems. |
void |
setConf(Configuration conf)
Set the configuration to be used by this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public CopyFiles()
public CopyFiles(Configuration conf)
Method Detail |
---|
public void setConf(Configuration conf)
Configurable
setConf
in interface Configurable
public Configuration getConf()
Configurable
getConf
in interface Configurable
@Deprecated public static void copy(Configuration conf, String srcPath, String destPath, Path logPath, boolean srcAsList, boolean ignoreReadFailures) throws IOException
IOException
public static void copy(Configuration conf, List<Path> srcPaths, Path destPath, Path logPath, EnumSet<org.apache.hadoop.util.CopyFiles.cpOpts> flags) throws IOException
srcPaths
- list of source pathsdestPath
- Destination pathlogPath
- Log output directoryflags
- Command-line flags
IOException
public int run(String[] args) throws Exception
run
in interface Tool
args
- command specific arguments.
Exception
public static void main(String[] args) throws Exception
Exception
public static Path makeRelative(Path root, Path absPath)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |