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 and Description
    --- | ---
    `static interface` | `FSHDFSUtils.CallerInfo`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static AtomicLong` | `RECOVER_LEASE_SUCCESS_COUNT`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `FSHDFSUtils()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and 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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.