Package org.apache.solr.util
Class FSHDFSUtils
- java.lang.Object
-
- org.apache.solr.util.FSHDFSUtils
-
public class FSHDFSUtils extends Object
Borrowed from Apache HBase to recover an HDFS lease.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFSHDFSUtils.CallerInfo
-
Field Summary
Fields Modifier and Type Field Description static AtomicLongRECOVER_LEASE_SUCCESS_COUNT
-
Constructor Summary
Constructors Constructor Description FSHDFSUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidrecoverFileLease(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path p, org.apache.hadoop.conf.Configuration conf, FSHDFSUtils.CallerInfo callerInfo)Recover the lease from HDFS, retrying multiple times.
-
-
-
Field Detail
-
RECOVER_LEASE_SUCCESS_COUNT
public static AtomicLong RECOVER_LEASE_SUCCESS_COUNT
-
-
Method Detail
-
recoverFileLease
public static void recoverFileLease(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path p, org.apache.hadoop.conf.Configuration conf, FSHDFSUtils.CallerInfo callerInfo) throws IOExceptionRecover the lease from HDFS, retrying multiple times.- Throws:
IOException
-
-