public class HDFSUtil extends Object
FSHDFSUtils from the latest HBase 0.94 version (as of 0.94.12),
which contains some additional fixes not present in our current HBase dependency version --
mainly checking the return value of the DistributedFileSystem.recoverLease() call to verify that
recovery succeeded.| Constructor and Description |
|---|
HDFSUtil() |
| Modifier and Type | Method and Description |
|---|---|
void |
recoverFileLease(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p,
org.apache.hadoop.conf.Configuration conf)
Recover the lease from HDFS, retrying multiple times.
|
public void recoverFileLease(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p,
org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.