public enum DistCpOptionSwitch extends Enum<DistCpOptionSwitch>
| Enum Constant and Description |
|---|
APPEND |
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, accepts bandwidth as a fraction
|
BLOCKING
Should DisctpExecution be blocking
|
BLOCKS_PER_CHUNK |
COPY_BUFFER_SIZE
Configurable copy buffer size.
|
COPY_STRATEGY
Copy strategy is use.
|
DELETE_MISSING
Deletes missing files in target that are missing from source.
|
DIFF |
DIRECT_WRITE
Write directly to the final location, avoiding the creation and rename
of temporary files.
|
FILE_LIMIT |
FILTERS
Path containing a list of strings, which when found in the path of
a file to be copied excludes that file from the copy job.
|
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.
|
NUM_LISTSTATUS_THREADS
Number of threads for building source file listing (before map-reduce
phase, max one listStatus per thread at a time).
|
OVERWRITE
Overwrite target-files unconditionally.
|
PRESERVE_STATUS
Preserves status of file/path in the target.
|
RDIFF |
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.
|
SYNC_FOLDERS
Update target location by copying only files that are missing
in the target.
|
TRACK_MISSING
Track missing files in target that are missing from source
This allows for other applications to complete the synchronization,
possibly with object-store-specific delete algorithms.
|
VERBOSE_LOG
Log additional info (path, size) in the SKIP/COPY log.
|
WORK_PATH
Work path to be used only in conjunction in Atomic commit
|
| Modifier and Type | Field and Description |
|---|---|
static String |
PRESERVE_STATUS_DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
static void |
addToConf(org.apache.hadoop.conf.Configuration conf,
DistCpOptionSwitch option)
Helper function to set an option to hadoop configuration object
|
static void |
addToConf(org.apache.hadoop.conf.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)
Returns the enum constant of this type with the specified name.
|
static DistCpOptionSwitch[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistCpOptionSwitch IGNORE_FAILURES
public static final DistCpOptionSwitch PRESERVE_STATUS
public static final DistCpOptionSwitch SYNC_FOLDERS
public static final DistCpOptionSwitch DELETE_MISSING
@InterfaceStability.Unstable public static final DistCpOptionSwitch TRACK_MISSING
public static final DistCpOptionSwitch NUM_LISTSTATUS_THREADS
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 VERBOSE_LOG
public static final DistCpOptionSwitch COPY_STRATEGY
public static final DistCpOptionSwitch SKIP_CRC
public static final DistCpOptionSwitch OVERWRITE
public static final DistCpOptionSwitch APPEND
public static final DistCpOptionSwitch DIFF
public static final DistCpOptionSwitch RDIFF
public static final DistCpOptionSwitch BLOCKING
public static final DistCpOptionSwitch FILE_LIMIT
public static final DistCpOptionSwitch SIZE_LIMIT
public static final DistCpOptionSwitch BLOCKS_PER_CHUNK
public static final DistCpOptionSwitch COPY_BUFFER_SIZE
public static final DistCpOptionSwitch BANDWIDTH
public static final DistCpOptionSwitch FILTERS
public static final DistCpOptionSwitch DIRECT_WRITE
public static final String PRESERVE_STATUS_DEFAULT
public static DistCpOptionSwitch[] values()
for (DistCpOptionSwitch c : DistCpOptionSwitch.values()) System.out.println(c);
public static DistCpOptionSwitch valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getConfigLabel()
public org.apache.commons.cli.Option getOption()
public String getSwitch()
public String toString()
toString in class Enum<DistCpOptionSwitch>public static void addToConf(org.apache.hadoop.conf.Configuration conf,
DistCpOptionSwitch option,
String value)
conf - - Configuration object to include the optionoption - - Option to addvalue - - Valuepublic static void addToConf(org.apache.hadoop.conf.Configuration conf,
DistCpOptionSwitch option)
conf - - Configuration object to include the optionoption - - Option to addCopyright © 2008–2020 Apache Software Foundation. All rights reserved.