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 interface
FSHDFSUtils.CallerInfo
-
Field Summary
Fields Modifier and Type Field Description static AtomicLong
RECOVER_LEASE_SUCCESS_COUNT
-
Constructor Summary
Constructors Constructor Description FSHDFSUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
recoverFileLease(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 IOException
Recover the lease from HDFS, retrying multiple times.- Throws:
IOException
-
-