public class ApiHdfsReplicationArguments extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ApiHdfsReplicationArguments.ReplicationStrategy
The strategy for distributing the file replication tasks among the mappers
of the MR job associated with a replication.
|
Constructor and Description |
---|
ApiHdfsReplicationArguments() |
ApiHdfsReplicationArguments(ApiServiceRef sourceService,
String sourcePath,
String destinationPath,
String mapreduceServiceName,
Integer numMaps,
String userName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
boolean |
getAbortOnError()
Whether to abort on a replication failure.
|
Integer |
getBandwidthPerMap()
The maximum bandwidth (in MB) per mapper in the mapreduce replication
job.
|
String |
getDestinationPath()
The destination to replicate to.
|
List<String> |
getExclusionFilters()
Specify regular expression strings to match full paths of files and directories
matching source paths and exclude them from the replication.
|
String |
getLogPath()
The HDFS path where the replication log files should be written to.
|
String |
getMapreduceServiceName()
The mapreduce service to use for the replication job.
|
Integer |
getNumMaps()
The number of mappers to use for the mapreduce replication job.
|
boolean |
getPreserveBlockSize()
Whether to preserve the HDFS block size.
|
boolean |
getPreservePermissions()
Whether to preserve the HDFS owner, group and permissions.
|
boolean |
getPreserveReplicationCount()
Whether to preserve the HDFS replication count.
|
Boolean |
getPreserveXAttrs()
Whether to preserve XAttrs, default to false
This is introduced in V10.
|
boolean |
getRemoveMissingFiles()
Whether to delete destination files that are missing in source.
|
ApiHdfsReplicationArguments.ReplicationStrategy |
getReplicationStrategy()
The strategy for distributing the file replication tasks among the mappers
of the MR job associated with a replication.
|
String |
getSchedulerPoolName()
Name of the scheduler pool to use when submitting the MapReduce job.
|
boolean |
getSkipChecksumChecks()
Whether to skip checksum based file validation/comparison during
replication.
|
Boolean |
getSkipTrash()
Whether to permanently delete destination files that are missing in source.
|
String |
getSourcePath()
The path to replicate.
|
ApiServiceRef |
getSourceService()
The service to replicate from.
|
String |
getUserName()
The user which will execute the MapReduce job.
|
int |
hashCode() |
boolean |
isDryRun()
Whether to perform a dry run.
|
void |
setAbortOnError(boolean abortOnError) |
void |
setBandwidthPerMap(Integer bandwidthPerMap) |
void |
setDestinationPath(String path) |
void |
setDryRun(boolean dryRun) |
void |
setExclusionFilters(List<String> exclusionFilters) |
void |
setLogPath(String logPath) |
void |
setMapreduceServiceName(String name) |
void |
setNumMaps(Integer numMaps) |
void |
setPreserveBlockSize(boolean preserveBlockSize) |
void |
setPreservePermissions(boolean preservePermissions) |
void |
setPreserveReplicationCount(boolean preserveReplicationCount) |
void |
setPreserveXAttrs(Boolean preserveXAttrs) |
void |
setRemoveMissingFiles(boolean removeMissingFiles) |
void |
setReplicationStrategy(ApiHdfsReplicationArguments.ReplicationStrategy replicationStrategy) |
void |
setSchedulerPoolName(String schedulerPoolName) |
void |
setSkipChecksumChecks(boolean skipChecksumChecks) |
void |
setSkipTrash(Boolean skipTrash) |
void |
setSourcePath(String path) |
void |
setSourceService(ApiServiceRef sourceService) |
void |
setUserName(String userName) |
String |
toString() |
protected com.google.common.base.Objects.ToStringHelper |
toStringHelper() |
public ApiServiceRef getSourceService()
public void setSourceService(ApiServiceRef sourceService)
public String getSourcePath()
public void setSourcePath(String path)
public String getDestinationPath()
public void setDestinationPath(String path)
public String getMapreduceServiceName()
public void setMapreduceServiceName(String name)
public String getSchedulerPoolName()
public void setSchedulerPoolName(String schedulerPoolName)
public String getUserName()
public void setUserName(String userName)
public Integer getNumMaps()
public void setNumMaps(Integer numMaps)
public boolean isDryRun()
public void setDryRun(boolean dryRun)
public Integer getBandwidthPerMap()
public void setBandwidthPerMap(Integer bandwidthPerMap)
public boolean getAbortOnError()
public void setAbortOnError(boolean abortOnError)
public boolean getRemoveMissingFiles()
public void setRemoveMissingFiles(boolean removeMissingFiles)
public boolean getPreserveReplicationCount()
public void setPreserveReplicationCount(boolean preserveReplicationCount)
public boolean getPreserveBlockSize()
public void setPreserveBlockSize(boolean preserveBlockSize)
public boolean getPreservePermissions()
public void setPreservePermissions(boolean preservePermissions)
public String getLogPath()
public void setLogPath(String logPath)
public boolean getSkipChecksumChecks()
public void setSkipChecksumChecks(boolean skipChecksumChecks)
public Boolean getSkipTrash()
public void setSkipTrash(Boolean skipTrash)
public ApiHdfsReplicationArguments.ReplicationStrategy getReplicationStrategy()
ApiHdfsReplicationArguments.ReplicationStrategy.STATIC
.public void setReplicationStrategy(ApiHdfsReplicationArguments.ReplicationStrategy replicationStrategy)
public Boolean getPreserveXAttrs()
public void setPreserveXAttrs(Boolean preserveXAttrs)
public List<String> getExclusionFilters()
protected com.google.common.base.Objects.ToStringHelper toStringHelper()
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.