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 |
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, checkdir, checkFileSystemAvailable, checkVersion, checkVersion, computeHDFSBlocksDistribution, create, deleteDirectory, getClusterId, getCurrentFileSystem, getInstance, getPath, getRegionDirs, getRootDir, getTableDirs, getTableFragmentation, getTableFragmentation, getTablePath, getTablePath, getTableStoreFilePathMap, getTotalTableFragmentation, getVersion, isAppendSupported, isHDFS, isMajorCompacted, isMajorCompactedPre020, isPre020FileLayout, listStatus, rootRegionExists, setClusterId, setVersion, setVersion, setVersion, validateRootPath, waitOnSafeMode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FSHDFSUtils
public FSHDFSUtils()
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 handlep
- Path of file to recover leaseconf
- Configuration handle
- Throws:
IOException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.