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.Public
@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.DirFilter, FSUtils.FamilyDirFilter, FSUtils.HFileFilter, FSUtils.RegionDirFilter
 
Field Summary
static long LEASE_SOFTLIMIT_PERIOD
          Lease timeout constant, sourced from HDFS upstream.
static String TEST_TRIGGER_DFS_APPEND
           
 
Constructor Summary
FSHDFSUtils()
           
 
Method Summary
 void recoverFileLease(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path p, org.apache.hadoop.conf.Configuration conf)
          Recover file lease.
 
Methods inherited from class org.apache.hadoop.hbase.util.FSUtils
checkAccess, checkClusterIdExists, checkDfsSafeMode, checkFileSystemAvailable, checkVersion, checkVersion, computeHDFSBlocksDistribution, create, create, delete, deleteDirectory, getClusterId, getCurrentFileSystem, getFamilyDirs, getFilePermissions, getInstance, getPath, getRegionDirs, getRootDir, getTableDirs, getTableFragmentation, getTableFragmentation, getTablePath, getTablePath, getTableStoreFilePathMap, getTotalTableFragmentation, getVersion, isAppendSupported, isExists, isHDFS, isMajorCompacted, isMajorCompactedPre020, isMatchingTail, isMatchingTail, isPre020FileLayout, isStartingWithPath, listStatus, listStatus, logFileSystemState, metaRegionExists, removeRootPath, 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
 

Field Detail

LEASE_SOFTLIMIT_PERIOD

public static final long LEASE_SOFTLIMIT_PERIOD
Lease timeout constant, sourced from HDFS upstream. The upstream constant is defined in a private interface, so we can't reuse for compatibility reasons. NOTE: On versions earlier than Hadoop 0.23, the constant is in o.a.h.hdfs.protocol.FSConstants, while for 0.23 and above it is in o.a.h.hdfs.protocol.HdfsConstants cause of HDFS-1620.

See Also:
Constant Field Values

TEST_TRIGGER_DFS_APPEND

public static final String TEST_TRIGGER_DFS_APPEND
See Also:
Constant Field Values
Constructor Detail

FSHDFSUtils

public FSHDFSUtils()
Method Detail

recoverFileLease

public void recoverFileLease(org.apache.hadoop.fs.FileSystem fs,
                             org.apache.hadoop.fs.Path p,
                             org.apache.hadoop.conf.Configuration conf)
                      throws IOException
Description copied from class: FSUtils
Recover file lease. Used when a file might be suspect to be had been left open by another process.

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


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.