public enum DistCpOptionSwitch extends Enum<DistCpOptionSwitch>
枚举常量和说明 |
---|
ATOMIC_COMMIT
Copy all the source files and commit them atomically to the target
This is typically useful in cases where there is a process
polling for availability of a file/dir.
|
BANDWIDTH
Specify bandwidth per map in MB
|
BLOCKING
Should DisctpExecution be blocking
|
COPY_STRATEGY
Copy strategy is use.
|
DELETE_MISSING
Deletes missing files in target that are missing from source
This allows the target to be in sync with the source contents
Typically used in conjunction with SYNC_FOLDERS
Incompatible with ATOMIC_COMMIT
|
FILE_LIMIT |
IGNORE_FAILURES
Ignores any failures during copy, and continues with rest.
|
LOG_PATH
Log path where distcp output logs are written to
|
MAX_MAPS
Max number of maps to use during copy.
|
OVERWRITE
Overwrite target-files unconditionally.
|
PRESERVE_STATUS
Preserves status of file/path in the target.
|
SIZE_LIMIT |
SKIP_CRC
Skip CRC checks between source and target, when determining what
files need to be copied.
|
SOURCE_FILE_LISTING
Source file listing can be provided to DistCp in a file.
|
SSL_CONF
Configuration file to use with hftps:// for securely copying
files across clusters.
|
SYNC_FOLDERS
Update target location by copying only files that are missing
in the target.
|
WORK_PATH
Work path to be used only in conjunction in Atomic commit
|
限定符和类型 | 方法和说明 |
---|---|
static void |
addToConf(Configuration conf,
DistCpOptionSwitch option)
Helper function to set an option to hadoop configuration object
|
static void |
addToConf(Configuration conf,
DistCpOptionSwitch option,
String value)
Helper function to add an option to hadoop configuration object
|
String |
getConfigLabel()
Get Configuration label for the option
|
org.apache.commons.cli.Option |
getOption()
Get CLI Option corresponding to the distcp option
|
String |
getSwitch()
Get Switch symbol
|
String |
toString() |
static DistCpOptionSwitch |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static DistCpOptionSwitch[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DistCpOptionSwitch IGNORE_FAILURES
public static final DistCpOptionSwitch PRESERVE_STATUS
public static final DistCpOptionSwitch SYNC_FOLDERS
public static final DistCpOptionSwitch DELETE_MISSING
public static final DistCpOptionSwitch SSL_CONF
public static final DistCpOptionSwitch MAX_MAPS
public static final DistCpOptionSwitch SOURCE_FILE_LISTING
public static final DistCpOptionSwitch ATOMIC_COMMIT
public static final DistCpOptionSwitch WORK_PATH
public static final DistCpOptionSwitch LOG_PATH
public static final DistCpOptionSwitch COPY_STRATEGY
public static final DistCpOptionSwitch SKIP_CRC
public static final DistCpOptionSwitch OVERWRITE
public static final DistCpOptionSwitch BLOCKING
public static final DistCpOptionSwitch FILE_LIMIT
public static final DistCpOptionSwitch SIZE_LIMIT
public static final DistCpOptionSwitch BANDWIDTH
public static DistCpOptionSwitch[] values()
for (DistCpOptionSwitch c : DistCpOptionSwitch.values()) System.out.println(c);
public static DistCpOptionSwitch valueOf(String name)
name
- 要返回的枚举常量的名称。public String getConfigLabel()
public org.apache.commons.cli.Option getOption()
public String getSwitch()
public String toString()
toString
在类中 Enum<DistCpOptionSwitch>
public static void addToConf(Configuration conf, DistCpOptionSwitch option, String value)
conf
- - Configuration object to include the optionoption
- - Option to addvalue
- - Valuepublic static void addToConf(Configuration conf, DistCpOptionSwitch option)
conf
- - Configuration object to include the optionoption
- - Option to addCopyright © 2009 The Apache Software Foundation