org.apache.hadoop.hbase.util
Class FSHDFSUtils

java.lang.Object
  extended by org.apache.hadoop.hbase.util.FSUtils
      extended by org.apache.hadoop.hbase.util.FSHDFSUtils

@InterfaceAudience.Private
@InterfaceStability.Evolving
public class FSHDFSUtils
extends FSUtils

Implementation for hdfs


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.FSUtils
FSUtils.BlackListDirFilter, FSUtils.DirFilter, FSUtils.FamilyDirFilter, FSUtils.HFileFilter, FSUtils.ReferenceFileFilter, FSUtils.RegionDirFilter, FSUtils.UserTableDirFilter
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.util.FSUtils
FULL_RWX_PERMISSIONS, WINDOWS
 
Constructor Summary
FSHDFSUtils()
           
 
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, CancelableProgressable reporter)
          Recover the lease from HDFS, retrying multiple times.
 
Methods inherited from class org.apache.hadoop.hbase.util.FSUtils
checkAccess, checkClusterIdExists, checkDfsSafeMode, checkFileSystemAvailable, checkShortCircuitReadBufferSize, checkVersion, checkVersion, computeHDFSBlocksDistribution, create, create, delete, deleteDirectory, deleteRegionDir, getClusterId, getCurrentFileSystem, getDefaultBlockSize, getDefaultBufferSize, getDefaultReplication, getFamilyDirs, getFileDefault, getFilePermissions, getInstance, getLocalTableDirs, getNamespaceDir, getPath, getReferenceFilePaths, getRegionDegreeLocalityMappingFromFS, getRegionDegreeLocalityMappingFromFS, getRegionDirs, getRegionReferenceFileCount, getRootDir, getTableDir, getTableDirs, getTableFragmentation, getTableFragmentation, getTableName, getTableStoreFilePathMap, getTableStoreFilePathMap, getTableStoreFilePathMap, getTableStoreFilePathMap, getTotalTableFragmentation, getVersion, isAppendSupported, isExists, isHDFS, isMajorCompacted, isMatchingTail, isMatchingTail, isRecoveredEdits, isStartingWithPath, listStatus, listStatus, logFileSystemState, metaRegionExists, removeRootPath, renameAndSetModifyTime, setClusterId, setFsDefault, setRootDir, setupShortCircuitRead, setVersion, setVersion, setVersion, validateRootPath, waitOnSafeMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSHDFSUtils

public FSHDFSUtils()
Method Detail

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 HBase
srcFs -
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,
                             CancelableProgressable reporter)
                      throws IOException
Recover the lease from HDFS, retrying multiple times.

Specified by:
recoverFileLease in class FSUtils
Parameters:
fs - FileSystem handle
p - Path of file to recover lease
conf - Configuration handle
Throws:
IOException


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.