|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.hadoop.tools.CopyListing
org.apache.hadoop.tools.SimpleCopyListing
public class SimpleCopyListing
The SimpleCopyListing is responsible for making the exhaustive list of all files/directories under its specified list of input-paths. These are written into the specified copy-listing file. Note: The SimpleCopyListing doesn't handle wild-cards in the input-paths.
| Constructor Summary | |
|---|---|
protected |
SimpleCopyListing(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.security.Credentials credentials)
Protected constructor, to initialize configuration. |
| Method Summary | |
|---|---|
void |
doBuildListing(org.apache.hadoop.fs.Path pathToListingFile,
DistCpOptions options)
The interface to be implemented by sub-classes, to create the source/target file listing. |
protected long |
getBytesToCopy()
Return the total bytes that distCp should copy for the source paths This doesn't consider whether file is same should be skipped during copy |
protected long |
getNumberOfPaths()
Return the total number of paths to distcp, includes directories as well This doesn't consider whether file/dir is already present and should be skipped during copy |
protected void |
validatePaths(DistCpOptions options)
Validate input and output paths |
| Methods inherited from class org.apache.hadoop.tools.CopyListing |
|---|
buildListing, getCopyListing, getCredentials, setCredentials |
| Methods inherited from class org.apache.hadoop.conf.Configured |
|---|
getConf, setConf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SimpleCopyListing(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.security.Credentials credentials)
configuration - The input configuration, with which the source/target FileSystems may be accessed.credentials - - Credentials object on which the FS delegation tokens are cached. If null
delegation token caching is skipped| Method Detail |
|---|
protected void validatePaths(DistCpOptions options)
throws IOException,
org.apache.hadoop.tools.CopyListing.InvalidInputException
CopyListing
validatePaths in class CopyListingoptions - - Input options
IOException
org.apache.hadoop.tools.CopyListing.InvalidInputException
public void doBuildListing(org.apache.hadoop.fs.Path pathToListingFile,
DistCpOptions options)
throws IOException
doBuildListing in class CopyListingpathToListingFile - Path on HDFS where the listing file is written.options - Input Options for DistCp (indicating source/target paths.)
IOExceptionprotected long getBytesToCopy()
getBytesToCopy in class CopyListingprotected long getNumberOfPaths()
getNumberOfPaths in class CopyListing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||