Class FSHDFSUtils


  • public class FSHDFSUtils
    extends Object
    Borrowed from Apache HBase to recover an HDFS lease.
    • Field Detail

      • RECOVER_LEASE_SUCCESS_COUNT

        public static AtomicLong RECOVER_LEASE_SUCCESS_COUNT
    • Constructor Detail

      • FSHDFSUtils

        public FSHDFSUtils()
    • 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