public class DistCp
extends java.lang.Object
String
s)
through copy(String...)
or specify individual arguments through the rest of the methods.Modifier and Type | Class and Description |
---|---|
static class |
DistCp.Preserve
Enumeration for the possible attributes that can be preserved by a copy operation.
|
Constructor and Description |
---|
DistCp(org.apache.hadoop.conf.Configuration configuration)
Constructs a new
DistCp instance. |
DistCp(org.apache.hadoop.conf.Configuration configuration,
java.lang.String user) |
Modifier and Type | Method and Description |
---|---|
void |
copy(java.lang.Boolean preserveReplication,
java.lang.Boolean preserveBlockSize,
java.lang.Boolean preserveUser,
java.lang.Boolean preserveGroup,
java.lang.Boolean preservePermission,
java.lang.Boolean ignoreFailures,
java.lang.Boolean skipCrc,
java.lang.String logDir,
java.lang.Integer mappers,
java.lang.Boolean overwrite,
java.lang.Boolean update,
java.lang.Boolean delete,
java.lang.Long fileLimit,
java.lang.Long sizeLimit,
java.lang.String fileList,
java.lang.String... uris)
Copies the given resources using the given parameters.
|
void |
copy(java.util.EnumSet<DistCp.Preserve> preserve,
java.lang.Boolean ignoreFailures,
java.lang.Boolean overwrite,
java.lang.Boolean update,
java.lang.Boolean delete,
java.lang.String... uris) |
void |
copy(java.util.EnumSet<DistCp.Preserve> preserve,
java.lang.Boolean ignoreFailures,
java.lang.Boolean skipCrc,
java.lang.String logDir,
java.lang.Integer mappers,
java.lang.Boolean overwrite,
java.lang.Boolean update,
java.lang.Boolean delete,
java.lang.Long fileLimit,
java.lang.Long sizeLimit,
java.lang.String fileList,
java.lang.String... uris)
Copies the given resources using the given parameters.
|
void |
copy(java.lang.String... arguments)
DistCopy using a command-line style (arguments are specified as
String s). |
void |
copy(java.lang.String arg1,
java.lang.String arg2)
Basic copy operation, between a source and a destination using the defaults.
|
void |
copy(java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3)
Basic copy operation, between a source and a destination using the defaults.
|
void |
setUser(java.lang.String user)
Sets the user impersonation (optional) for creating this utility.
|
public DistCp(org.apache.hadoop.conf.Configuration configuration)
DistCp
instance.configuration
- Hadoop configuration to use.public DistCp(org.apache.hadoop.conf.Configuration configuration, java.lang.String user)
public void copy(java.util.EnumSet<DistCp.Preserve> preserve, java.lang.Boolean ignoreFailures, java.lang.Boolean overwrite, java.lang.Boolean update, java.lang.Boolean delete, java.lang.String... uris)
preserve
- preserveignoreFailures
- ignoreFailuresoverwrite
- overwriteupdate
- updatedelete
- deleteuris
- urispublic void copy(java.util.EnumSet<DistCp.Preserve> preserve, java.lang.Boolean ignoreFailures, java.lang.Boolean skipCrc, java.lang.String logDir, java.lang.Integer mappers, java.lang.Boolean overwrite, java.lang.Boolean update, java.lang.Boolean delete, java.lang.Long fileLimit, java.lang.Long sizeLimit, java.lang.String fileList, java.lang.String... uris)
preserve
- preserveignoreFailures
- ignoreFailuresskipCrc
- skipCrclogDir
- logDirmappers
- mappersoverwrite
- overwriteupdate
- updatedelete
- deletefileLimit
- fileLimitsizeLimit
- sizeLimitfileList
- fileListuris
- urispublic void copy(java.lang.Boolean preserveReplication, java.lang.Boolean preserveBlockSize, java.lang.Boolean preserveUser, java.lang.Boolean preserveGroup, java.lang.Boolean preservePermission, java.lang.Boolean ignoreFailures, java.lang.Boolean skipCrc, java.lang.String logDir, java.lang.Integer mappers, java.lang.Boolean overwrite, java.lang.Boolean update, java.lang.Boolean delete, java.lang.Long fileLimit, java.lang.Long sizeLimit, java.lang.String fileList, java.lang.String... uris)
preserveReplication
- preserveReplicationpreserveBlockSize
- preserveBlockSizepreserveUser
- preserveUserpreserveGroup
- preserveGrouppreservePermission
- preservePermissionignoreFailures
- ignoreFailuresskipCrc
- skipCrclogDir
- logDirmappers
- mappersoverwrite
- overwriteupdate
- updatedelete
- deletefileLimit
- fileLimitsizeLimit
- sizeLimitfileList
- fileListuris
- urispublic void copy(java.lang.String arg1, java.lang.String arg2)
arg1
- arg1arg2
- arg2public void copy(java.lang.String arg1, java.lang.String arg2, java.lang.String arg3)
arg1
- arg1arg2
- arg2arg3
- arg3public void copy(java.lang.String... arguments)
String
s).arguments
- copy argumentspublic void setUser(java.lang.String user)
user
- user/group information