public class HFileSystem
extends org.apache.hadoop.fs.FilterFileSystem
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
HFileSystem(org.apache.hadoop.conf.Configuration conf,
boolean useHBaseChecksum)
Create a FileSystem object for HBase regionservers.
|
HFileSystem(org.apache.hadoop.fs.FileSystem fs)
Wrap a FileSystem object within a HFileSystem.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addLocationsOrderInterceptor(org.apache.hadoop.conf.Configuration conf) |
void |
close()
Close this filesystem object
|
org.apache.hadoop.fs.FSDataOutputStream |
createNonRecursive(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress)
The org.apache.hadoop.fs.FilterFileSystem does not yet support
createNonRecursive.
|
static org.apache.hadoop.fs.FileSystem |
get(org.apache.hadoop.conf.Configuration conf)
Create a new HFileSystem object, similar to FileSystem.get().
|
org.apache.hadoop.fs.FileSystem |
getBackingFs()
Returns the underlying filesystem
|
static org.apache.hadoop.fs.FileSystem |
getLocalFs(org.apache.hadoop.conf.Configuration conf)
Wrap a LocalFileSystem within a HFileSystem.
|
org.apache.hadoop.fs.FileSystem |
getNoChecksumFs()
Returns the filesystem that is specially setup for
doing reads from storage.
|
boolean |
useHBaseChecksum()
Are we verifying checksums in HBase?
|
append, checkPath, completeLocalOutput, concat, copyFromLocalFile, copyToLocalFile, create, delete, delete, getCanonicalServiceName, getConf, getDefaultBlockSize, getDefaultReplication, getFileBlockLocations, getFileChecksum, getFileStatus, getHomeDirectory, getName, getUri, getWorkingDirectory, initialize, listStatus, makeQualified, mkdirs, open, rename, setOwner, setPermission, setReplication, setVerifyChecksum, setWorkingDirectory, startLocalOutputaddFileSystemForTesting, append, append, clearStatistics, closeAll, closeAllForUGI, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, createNewFile, createNonRecursive, deleteOnExit, exists, get, get, getAllStatistics, getBlockSize, getCacheSize, getCanonicalUri, getContentSummary, getDefaultBlockSize, getDefaultPort, getDefaultReplication, getDefaultUri, getDelegationToken, getLength, getLocal, getNamed, getReplication, getStatistics, getStatistics, getUsed, globStatus, globStatus, isDirectory, isFile, listStatus, listStatus, listStatus, mkdirs, mkdirs, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, open, printStatistics, processDeleteOnExit, setDefaultUri, setDefaultUri, setTimespublic HFileSystem(org.apache.hadoop.conf.Configuration conf,
boolean useHBaseChecksum)
throws IOException
conf - The configuration to be used for the filesystemuseHBaseChecksum - if true, then use
checksum verfication in hbase, otherwise
delegate checksum verification to the FileSystem.IOExceptionpublic HFileSystem(org.apache.hadoop.fs.FileSystem fs)
fs - Set the noChecksumFs and writeFs to this specified filesystem.public org.apache.hadoop.fs.FileSystem getNoChecksumFs()
public org.apache.hadoop.fs.FileSystem getBackingFs()
throws IOException
IOExceptionpublic boolean useHBaseChecksum()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.fs.FilterFileSystemIOExceptionpublic static boolean addLocationsOrderInterceptor(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic static org.apache.hadoop.fs.FileSystem get(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic static org.apache.hadoop.fs.FileSystem getLocalFs(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic org.apache.hadoop.fs.FSDataOutputStream createNonRecursive(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress)
throws IOException
createNonRecursive in class org.apache.hadoop.fs.FileSystemIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.