org.apache.hadoop.conf.Configurablepublic class FileBasedCopyListing extends CopyListing
CopyListing.AclsNotSupportedException, CopyListing.XAttrsNotSupportedException| Constructor | Description |
|---|---|
FileBasedCopyListing(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.security.Credentials credentials) |
Constructor, to initialize base-class.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
doBuildListing(org.apache.hadoop.fs.Path pathToListFile,
DistCpContext context) |
Implementation of CopyListing::buildListing().
|
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(DistCpContext context) |
Validate input and output paths
|
buildListing, getCopyListing, getCredentials, getFileListingKey, getFileListingValue, setCredentialspublic FileBasedCopyListing(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.security.Credentials credentials)
configuration - The input Configuration object.credentials - - Credentials object on which the FS delegation tokens are cached. If null
delegation token caching is skippedprotected void validatePaths(DistCpContext context) throws java.io.IOException, org.apache.hadoop.tools.CopyListing.InvalidInputException
validatePaths in class CopyListingcontext - - Distcp contextjava.io.IOException - any Exception with FSorg.apache.hadoop.tools.CopyListing.InvalidInputException - If inputs are invalidpublic void doBuildListing(org.apache.hadoop.fs.Path pathToListFile,
DistCpContext context)
throws java.io.IOException
doBuildListing in class CopyListingpathToListFile - Path on HDFS where the listing file is written.context - Distcp context with associated input options.java.io.IOExceptionprotected long getBytesToCopy()
getBytesToCopy in class CopyListingprotected long getNumberOfPaths()
getNumberOfPaths in class CopyListingCopyright © 2008–2025 Apache Software Foundation. All rights reserved.