org.apache.hadoop.hbase.util
Class FSHDFSUtils
java.lang.Object
org.apache.hadoop.hbase.util.FSUtils
org.apache.hadoop.hbase.util.FSHDFSUtils
public class FSHDFSUtils
- extends FSUtils
Implementation for hdfs
Method Summary |
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. |
Methods inherited from class org.apache.hadoop.hbase.util.FSUtils |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FSHDFSUtils
public FSHDFSUtils()
isSameHdfs
public static boolean isSameHdfs(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem srcFs,
org.apache.hadoop.fs.FileSystem desFs)
- Parameters:
conf
- the Configuration of HBasesrcFs
- desFs
-
- Returns:
- Whether srcFs and desFs are on same hdfs or not
recoverFileLease
public void recoverFileLease(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p,
org.apache.hadoop.conf.Configuration conf)
throws IOException
- Recover the lease from HDFS, retrying multiple times.
- Specified by:
recoverFileLease
in class FSUtils
- Parameters:
fs
- FileSystem handlep
- Path of file to recover leaseconf
- Configuration handle
- Throws:
IOException
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.