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

public class FSHDFSUtils
extends FSUtils

Implementation for hdfs


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.FSUtils
FSUtils.DirFilter, FSUtils.FamilyDirFilter, FSUtils.HFileFilter, FSUtils.RegionDirFilter
 
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)
          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, setRootDir, 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)
                      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 © 2014 The Apache Software Foundation. All Rights Reserved.