public class FSHDFSUtils extends FSUtils
FSUtils.DirFilter, FSUtils.FamilyDirFilter, FSUtils.HFileFilter, FSUtils.RegionDirFilter
Constructor and Description |
---|
FSHDFSUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isSameHdfs(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem srcFs,
org.apache.hadoop.fs.FileSystem desFs) |
void |
recoverFileLease(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p,
org.apache.hadoop.conf.Configuration conf)
Recover the lease from HDFS, retrying multiple times.
|
checkAccess, checkClusterIdExists, checkDfsSafeMode, checkdir, checkFileSystemAvailable, checkVersion, checkVersion, computeHDFSBlocksDistribution, create, create, delete, deleteDirectory, getClusterId, getCurrentFileSystem, getDefaultBlockSize, getDefaultBufferSize, getDefaultReplication, getFamilyDirs, getFilePermissions, getInstance, getPath, getRegionDirs, getRootDir, getTableDirs, getTableFragmentation, getTableFragmentation, getTablePath, getTablePath, getTableStoreFilePathMap, getTotalTableFragmentation, getVersion, isAppendSupported, isExists, isHDFS, isMajorCompacted, isMajorCompactedPre020, isPre020FileLayout, listStatus, listStatus, logFileSystemState, rootRegionExists, setClusterId, setFsDefault, setRootDir, setVersion, setVersion, setVersion, validateRootPath, waitOnSafeMode
public static boolean isSameHdfs(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem srcFs, org.apache.hadoop.fs.FileSystem desFs)
conf
- the Configuration of HBasesrcFs
- desFs
- public void recoverFileLease(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path p, org.apache.hadoop.conf.Configuration conf) throws IOException
recoverFileLease
in class FSUtils
fs
- FileSystem handlep
- Path of file to recover leaseconf
- Configuration handleIOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.