|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.api.model.ApiHdfsReplicationArguments
public class ApiHdfsReplicationArguments
Replication arguments for HDFS.
Nested Class Summary | |
---|---|
static class |
ApiHdfsReplicationArguments.ReplicationStrategy
The strategy for distributing the file replication tasks among the mappers of the MR job associated with a replication. |
Constructor Summary | |
---|---|
ApiHdfsReplicationArguments()
|
|
ApiHdfsReplicationArguments(ApiServiceRef sourceService,
String sourcePath,
String destinationPath,
String mapreduceServiceName,
Integer numMaps,
String userName)
|
Method Summary | |
---|---|
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 |
getSourceUser()
The user which will perform operations on source cluster. |
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 |
setSourceUser(String sourceUser)
|
void |
setUserName(String userName)
|
String |
toString()
|
protected com.google.common.base.Objects.ToStringHelper |
toStringHelper()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ApiHdfsReplicationArguments()
public ApiHdfsReplicationArguments(ApiServiceRef sourceService, String sourcePath, String destinationPath, String mapreduceServiceName, Integer numMaps, String userName)
Method Detail |
---|
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 String getSourceUser()
public void setSourceUser(String sourceUser)
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()
public void setExclusionFilters(List<String> exclusionFilters)
protected com.google.common.base.Objects.ToStringHelper toStringHelper()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |