Class SecureBulkLoadManager.SecureBulkLoadListener
java.lang.Object
org.apache.hadoop.hbase.regionserver.SecureBulkLoadManager.SecureBulkLoadListener
- All Implemented Interfaces:
- HRegion.BulkLoadListener
- Enclosing class:
- SecureBulkLoadManager
static class SecureBulkLoadManager.SecureBulkLoadListener
extends Object
implements HRegion.BulkLoadListener
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configurationprivate final org.apache.hadoop.fs.FileSystemprivate org.apache.hadoop.fs.FileSystemprivate final String
- 
Constructor SummaryConstructorsConstructorDescriptionSecureBulkLoadListener(org.apache.hadoop.fs.FileSystem fs, String stagingDir, org.apache.hadoop.conf.Configuration conf) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidvoiddoneBulkLoad(byte[] family, String srcPath) Called after a successful HFile loadvoidfailedBulkLoad(byte[] family, String stagedPath) Called after a failed HFile loadprivate booleanisFile(org.apache.hadoop.fs.Path p) Check if the path is referencing a file.prepareBulkLoad(byte[] family, String srcPath, boolean copyFile, String customStaging) Called before an HFile is actually loaded
- 
Field Details- 
fs
- 
stagingDir
- 
conf
- 
srcFs
- 
origPermissions
- 
origSources
 
- 
- 
Constructor Details- 
SecureBulkLoadListenerpublic SecureBulkLoadListener(org.apache.hadoop.fs.FileSystem fs, String stagingDir, org.apache.hadoop.conf.Configuration conf) 
 
- 
- 
Method Details- 
prepareBulkLoadpublic String prepareBulkLoad(byte[] family, String srcPath, boolean copyFile, String customStaging) throws IOException Description copied from interface:HRegion.BulkLoadListenerCalled before an HFile is actually loaded- Specified by:
- prepareBulkLoadin interface- HRegion.BulkLoadListener
- Parameters:
- family- family being loaded to
- srcPath- path of HFile
- Returns:
- final path to be used for actual loading
- Throws:
- IOException
 
- 
doneBulkLoadDescription copied from interface:HRegion.BulkLoadListenerCalled after a successful HFile load- Specified by:
- doneBulkLoadin interface- HRegion.BulkLoadListener
- Parameters:
- family- family being loaded to
- srcPath- path of HFile
- Throws:
- IOException
 
- 
closeSrcFs- Throws:
- IOException
 
- 
failedBulkLoadDescription copied from interface:HRegion.BulkLoadListenerCalled after a failed HFile load- Specified by:
- failedBulkLoadin interface- HRegion.BulkLoadListener
- Parameters:
- family- family being loaded to
- stagedPath- path of HFile
- Throws:
- IOException
 
- 
isFileCheck if the path is referencing a file. This is mainly needed to avoid symlinks.- Returns:
- true if the p is a file
- Throws:
- IOException
 
 
-