@InterfaceAudience.Private public final class RecoverLeaseFSUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LEASE_RECOVERABLE_CLASS_NAME |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isLeaseRecoverable(org.apache.hadoop.fs.FileSystem fs) |
static void |
recoverFileLease(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p,
org.apache.hadoop.conf.Configuration conf) |
static void |
recoverFileLease(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p,
org.apache.hadoop.conf.Configuration conf,
CancelableProgressable reporter)
Recover the lease from Hadoop file system, retrying multiple times.
|
public static final String LEASE_RECOVERABLE_CLASS_NAME
public static void recoverFileLease(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p,
org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic static void recoverFileLease(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p,
org.apache.hadoop.conf.Configuration conf,
CancelableProgressable reporter)
throws IOException
IOExceptionpublic static boolean isLeaseRecoverable(org.apache.hadoop.fs.FileSystem fs)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.