public class DrillFileSystem extends org.apache.hadoop.fs.FileSystem implements OpenFileTracker
DrillFileSystem
is
immutable.
If OperatorStats
are provided it returns an instrumented FSDataInputStream to
measure IO wait time and tracking file open/close operations.Modifier and Type | Class and Description |
---|---|
static class |
DrillFileSystem.DebugStackTrace |
Modifier and Type | Field and Description |
---|---|
static String |
DOT_PREFIX |
static String |
UNDERSCORE_PREFIX |
Constructor and Description |
---|
DrillFileSystem(org.apache.hadoop.conf.Configuration fsConf) |
DrillFileSystem(org.apache.hadoop.conf.Configuration fsConf,
OperatorStats operatorStats) |
Modifier and Type | Method and Description |
---|---|
void |
access(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.permission.FsAction mode) |
org.apache.hadoop.security.token.Token<?>[] |
addDelegationTokens(String renewer,
org.apache.hadoop.security.Credentials credentials) |
org.apache.hadoop.fs.FSDataOutputStream |
append(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.fs.FSDataOutputStream |
append(org.apache.hadoop.fs.Path f,
int bufferSize) |
org.apache.hadoop.fs.FSDataOutputStream |
append(org.apache.hadoop.fs.Path f,
int bufferSize,
org.apache.hadoop.util.Progressable progress) |
boolean |
cancelDeleteOnExit(org.apache.hadoop.fs.Path f) |
void |
close() |
void |
completeLocalOutput(org.apache.hadoop.fs.Path fsOutputFile,
org.apache.hadoop.fs.Path tmpLocalFile) |
void |
concat(org.apache.hadoop.fs.Path trg,
org.apache.hadoop.fs.Path[] psrcs) |
void |
copyFromLocalFile(boolean delSrc,
boolean overwrite,
org.apache.hadoop.fs.Path[] srcs,
org.apache.hadoop.fs.Path dst) |
void |
copyFromLocalFile(boolean delSrc,
boolean overwrite,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
void |
copyFromLocalFile(boolean delSrc,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
void |
copyFromLocalFile(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
void |
copyToLocalFile(boolean delSrc,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
void |
copyToLocalFile(boolean delSrc,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst,
boolean useRawLocalFileSystem) |
void |
copyToLocalFile(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
boolean overwrite) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize,
org.apache.hadoop.util.Progressable progress) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission,
EnumSet<org.apache.hadoop.fs.CreateFlag> flags,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission,
EnumSet<org.apache.hadoop.fs.CreateFlag> flags,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress,
org.apache.hadoop.fs.Options.ChecksumOpt checksumOpt) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
org.apache.hadoop.util.Progressable progress) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
short replication) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
short replication,
org.apache.hadoop.util.Progressable progress) |
boolean |
createNewFile(org.apache.hadoop.fs.Path f) |
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)
Deprecated.
|
org.apache.hadoop.fs.FSDataOutputStream |
createNonRecursive(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress)
Deprecated.
|
org.apache.hadoop.fs.FSDataOutputStream |
createNonRecursive(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission,
EnumSet<org.apache.hadoop.fs.CreateFlag> flags,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress)
Deprecated.
|
org.apache.hadoop.fs.Path |
createSnapshot(org.apache.hadoop.fs.Path path,
String snapshotName) |
void |
createSymlink(org.apache.hadoop.fs.Path target,
org.apache.hadoop.fs.Path link,
boolean createParent) |
boolean |
delete(org.apache.hadoop.fs.Path f)
Deprecated.
|
boolean |
delete(org.apache.hadoop.fs.Path f,
boolean recursive) |
boolean |
deleteOnExit(org.apache.hadoop.fs.Path f) |
void |
deleteSnapshot(org.apache.hadoop.fs.Path path,
String snapshotName) |
boolean |
exists(org.apache.hadoop.fs.Path f) |
void |
fileClosed(DrillFSDataInputStream fsDataInputStream)
Remove the given
DrillFSDataInputStream from opened file list. |
void |
fileOpened(org.apache.hadoop.fs.Path path,
DrillFSDataInputStream fsDataInputStream)
Add new file location and
DrillFSDataInputStream to list. |
org.apache.hadoop.fs.permission.AclStatus |
getAclStatus(org.apache.hadoop.fs.Path path) |
long |
getBlockSize(org.apache.hadoop.fs.Path f)
Deprecated.
|
String |
getCanonicalServiceName() |
org.apache.hadoop.fs.FileSystem[] |
getChildFileSystems() |
org.apache.hadoop.io.compress.CompressionCodec |
getCodec(org.apache.hadoop.fs.Path path)
Returns the
CompressionCodec for a given file. |
org.apache.hadoop.conf.Configuration |
getConf()
Returns a copy of
Configuration for this DrillFileSystem . |
org.apache.hadoop.fs.ContentSummary |
getContentSummary(org.apache.hadoop.fs.Path f) |
long |
getDefaultBlockSize()
Deprecated.
|
long |
getDefaultBlockSize(org.apache.hadoop.fs.Path f) |
short |
getDefaultReplication()
Deprecated.
|
short |
getDefaultReplication(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.security.token.Token<?> |
getDelegationToken(String renewer) |
org.apache.hadoop.fs.BlockLocation[] |
getFileBlockLocations(org.apache.hadoop.fs.FileStatus file,
long start,
long len) |
org.apache.hadoop.fs.BlockLocation[] |
getFileBlockLocations(org.apache.hadoop.fs.Path p,
long start,
long len) |
org.apache.hadoop.fs.FileChecksum |
getFileChecksum(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.fs.FileChecksum |
getFileChecksum(org.apache.hadoop.fs.Path f,
long length) |
org.apache.hadoop.fs.FileStatus |
getFileLinkStatus(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.fs.FileStatus |
getFileStatus(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.fs.Path |
getHomeDirectory() |
long |
getLength(org.apache.hadoop.fs.Path f)
Deprecated.
|
org.apache.hadoop.fs.Path |
getLinkTarget(org.apache.hadoop.fs.Path f) |
String |
getName()
Deprecated.
|
short |
getReplication(org.apache.hadoop.fs.Path src)
Deprecated.
|
String |
getScheme() |
org.apache.hadoop.fs.FsServerDefaults |
getServerDefaults()
Deprecated.
|
org.apache.hadoop.fs.FsServerDefaults |
getServerDefaults(org.apache.hadoop.fs.Path p) |
org.apache.hadoop.fs.FsStatus |
getStatus() |
org.apache.hadoop.fs.FsStatus |
getStatus(org.apache.hadoop.fs.Path p) |
URI |
getUri() |
long |
getUsed() |
org.apache.hadoop.fs.Path |
getWorkingDirectory() |
byte[] |
getXAttr(org.apache.hadoop.fs.Path path,
String name) |
Map<String,byte[]> |
getXAttrs(org.apache.hadoop.fs.Path path) |
Map<String,byte[]> |
getXAttrs(org.apache.hadoop.fs.Path path,
List<String> names) |
org.apache.hadoop.fs.FileStatus[] |
globStatus(org.apache.hadoop.fs.Path pathPattern) |
org.apache.hadoop.fs.FileStatus[] |
globStatus(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.fs.PathFilter filter) |
void |
initialize(URI name,
org.apache.hadoop.conf.Configuration conf)
This method should never be used on
DrillFileSystem since DrillFileSystem is immutable. |
boolean |
isDirectory(org.apache.hadoop.fs.Path f) |
boolean |
isFile(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.Path> |
listCorruptFileBlocks(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.LocatedFileStatus> |
listFiles(org.apache.hadoop.fs.Path f,
boolean recursive) |
org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.LocatedFileStatus> |
listLocatedStatus(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path[] files) |
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path[] files,
org.apache.hadoop.fs.PathFilter filter) |
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.PathFilter filter) |
org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.FileStatus> |
listStatusIterator(org.apache.hadoop.fs.Path p) |
List<String> |
listXAttrs(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.Path |
makeQualified(org.apache.hadoop.fs.Path path) |
boolean |
mkdirs(org.apache.hadoop.fs.Path folderPath) |
boolean |
mkdirs(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission) |
void |
modifyAclEntries(org.apache.hadoop.fs.Path path,
List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) |
void |
moveFromLocalFile(org.apache.hadoop.fs.Path[] srcs,
org.apache.hadoop.fs.Path dst) |
void |
moveFromLocalFile(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
void |
moveToLocalFile(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
org.apache.hadoop.fs.FSDataInputStream |
open(org.apache.hadoop.fs.Path f)
If OperatorStats are provided return a instrumented
FSDataInputStream . |
org.apache.hadoop.fs.FSDataInputStream |
open(org.apache.hadoop.fs.Path f,
int bufferSize)
If OperatorStats are provided return a instrumented
FSDataInputStream . |
InputStream |
openPossiblyCompressedStream(org.apache.hadoop.fs.Path path)
Returns an InputStream from a Hadoop path.
|
void |
removeAcl(org.apache.hadoop.fs.Path path) |
void |
removeAclEntries(org.apache.hadoop.fs.Path path,
List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) |
void |
removeDefaultAcl(org.apache.hadoop.fs.Path path) |
void |
removeXAttr(org.apache.hadoop.fs.Path path,
String name) |
boolean |
rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
void |
renameSnapshot(org.apache.hadoop.fs.Path path,
String snapshotOldName,
String snapshotNewName) |
org.apache.hadoop.fs.Path |
resolvePath(org.apache.hadoop.fs.Path p) |
void |
setAcl(org.apache.hadoop.fs.Path path,
List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) |
void |
setConf(org.apache.hadoop.conf.Configuration conf)
This method should never be used on
DrillFileSystem since DrillFileSystem is immutable. |
void |
setOwner(org.apache.hadoop.fs.Path p,
String username,
String groupname) |
void |
setPermission(org.apache.hadoop.fs.Path p,
org.apache.hadoop.fs.permission.FsPermission permission) |
boolean |
setReplication(org.apache.hadoop.fs.Path src,
short replication) |
void |
setTimes(org.apache.hadoop.fs.Path p,
long mtime,
long atime) |
void |
setVerifyChecksum(boolean verifyChecksum)
This method should never be used on
DrillFileSystem since DrillFileSystem is immutable. |
void |
setWorkingDirectory(org.apache.hadoop.fs.Path new_dir)
This method should never be used on
DrillFileSystem since DrillFileSystem is immutable. |
void |
setWriteChecksum(boolean writeChecksum)
This method should never be used on
DrillFileSystem since DrillFileSystem is immutable. |
void |
setXAttr(org.apache.hadoop.fs.Path path,
String name,
byte[] value) |
void |
setXAttr(org.apache.hadoop.fs.Path path,
String name,
byte[] value,
EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag) |
org.apache.hadoop.fs.Path |
startLocalOutput(org.apache.hadoop.fs.Path fsOutputFile,
org.apache.hadoop.fs.Path tmpLocalFile) |
boolean |
supportsSymlinks() |
boolean |
truncate(org.apache.hadoop.fs.Path f,
long newLength) |
appendFile, areSymlinksEnabled, canonicalizeUri, checkPath, clearStatistics, closeAll, closeAllForUGI, create, createFile, createPathHandle, createSnapshot, enableSymlinks, fixRelativePart, get, get, get, getAdditionalTokenIssuers, getAllStatistics, getAllStoragePolicies, getCanonicalUri, getDefaultPort, getDefaultUri, getFileSystemClass, getFSofPath, getGlobalStorageStatistics, getInitialWorkingDirectory, getLocal, getNamed, getPathHandle, getQuotaUsage, getStatistics, getStatistics, getStoragePolicy, getStorageStatistics, getTrashRoot, getTrashRoots, getUsed, hasPathCapability, listLocatedStatus, listStatusBatch, mkdirs, msync, newInstance, newInstance, newInstance, newInstanceLocal, open, open, primitiveCreate, primitiveMkdir, primitiveMkdir, printStatistics, processDeleteOnExit, rename, resolveLink, satisfyStoragePolicy, setDefaultUri, setDefaultUri, setQuota, setQuotaByStorageType, setStoragePolicy, unsetStoragePolicy
public static final String UNDERSCORE_PREFIX
public static final String DOT_PREFIX
public DrillFileSystem(org.apache.hadoop.conf.Configuration fsConf) throws IOException
IOException
public DrillFileSystem(org.apache.hadoop.conf.Configuration fsConf, OperatorStats operatorStats) throws IOException
IOException
public void setConf(org.apache.hadoop.conf.Configuration conf)
DrillFileSystem
since DrillFileSystem
is immutable.
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class org.apache.hadoop.conf.Configured
UnsupportedOperationException
- when called.public org.apache.hadoop.conf.Configuration getConf()
Configuration
for this DrillFileSystem
.
Note: a copy of the Configuration
is returned in order to enforce immutability.getConf
in interface org.apache.hadoop.conf.Configurable
getConf
in class org.apache.hadoop.conf.Configured
Configuration
for this DrillFileSystem
.public org.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path f, int bufferSize) throws IOException
FSDataInputStream
.open
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path f) throws IOException
FSDataInputStream
.open
in class org.apache.hadoop.fs.FileSystem
IOException
public void initialize(URI name, org.apache.hadoop.conf.Configuration conf)
DrillFileSystem
since DrillFileSystem
is immutable.
initialize
in class org.apache.hadoop.fs.FileSystem
UnsupportedOperationException
- when called.public String getScheme()
getScheme
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, boolean overwrite) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, org.apache.hadoop.util.Progressable progress) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, short replication) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, short replication, org.apache.hadoop.util.Progressable progress) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, boolean overwrite, int bufferSize) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, boolean overwrite, int bufferSize, org.apache.hadoop.util.Progressable progress) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, boolean overwrite, int bufferSize, short replication, long blockSize) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, boolean overwrite, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path f) throws IOException
getFileStatus
in class org.apache.hadoop.fs.FileSystem
IOException
public void createSymlink(org.apache.hadoop.fs.Path target, org.apache.hadoop.fs.Path link, boolean createParent) throws IOException
createSymlink
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FileStatus getFileLinkStatus(org.apache.hadoop.fs.Path f) throws IOException
getFileLinkStatus
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean supportsSymlinks()
supportsSymlinks
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.Path getLinkTarget(org.apache.hadoop.fs.Path f) throws IOException
getLinkTarget
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FileChecksum getFileChecksum(org.apache.hadoop.fs.Path f) throws IOException
getFileChecksum
in class org.apache.hadoop.fs.FileSystem
IOException
public void setVerifyChecksum(boolean verifyChecksum)
DrillFileSystem
since DrillFileSystem
is immutable.
setVerifyChecksum
in class org.apache.hadoop.fs.FileSystem
UnsupportedOperationException
- when called.public void setWriteChecksum(boolean writeChecksum)
DrillFileSystem
since DrillFileSystem
is immutable.
setWriteChecksum
in class org.apache.hadoop.fs.FileSystem
UnsupportedOperationException
- when called.public org.apache.hadoop.fs.FsStatus getStatus() throws IOException
getStatus
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FsStatus getStatus(org.apache.hadoop.fs.Path p) throws IOException
getStatus
in class org.apache.hadoop.fs.FileSystem
IOException
public void setPermission(org.apache.hadoop.fs.Path p, org.apache.hadoop.fs.permission.FsPermission permission) throws IOException
setPermission
in class org.apache.hadoop.fs.FileSystem
IOException
public void setOwner(org.apache.hadoop.fs.Path p, String username, String groupname) throws IOException
setOwner
in class org.apache.hadoop.fs.FileSystem
IOException
public void setTimes(org.apache.hadoop.fs.Path p, long mtime, long atime) throws IOException
setTimes
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.Path createSnapshot(org.apache.hadoop.fs.Path path, String snapshotName) throws IOException
createSnapshot
in class org.apache.hadoop.fs.FileSystem
IOException
public void renameSnapshot(org.apache.hadoop.fs.Path path, String snapshotOldName, String snapshotNewName) throws IOException
renameSnapshot
in class org.apache.hadoop.fs.FileSystem
IOException
public void deleteSnapshot(org.apache.hadoop.fs.Path path, String snapshotName) throws IOException
deleteSnapshot
in class org.apache.hadoop.fs.FileSystem
IOException
public void modifyAclEntries(org.apache.hadoop.fs.Path path, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) throws IOException
modifyAclEntries
in class org.apache.hadoop.fs.FileSystem
IOException
public void removeAclEntries(org.apache.hadoop.fs.Path path, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) throws IOException
removeAclEntries
in class org.apache.hadoop.fs.FileSystem
IOException
public void removeDefaultAcl(org.apache.hadoop.fs.Path path) throws IOException
removeDefaultAcl
in class org.apache.hadoop.fs.FileSystem
IOException
public void removeAcl(org.apache.hadoop.fs.Path path) throws IOException
removeAcl
in class org.apache.hadoop.fs.FileSystem
IOException
public void setAcl(org.apache.hadoop.fs.Path path, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) throws IOException
setAcl
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.permission.AclStatus getAclStatus(org.apache.hadoop.fs.Path path) throws IOException
getAclStatus
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.Path getWorkingDirectory()
getWorkingDirectory
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.FSDataOutputStream append(org.apache.hadoop.fs.Path f, int bufferSize, org.apache.hadoop.util.Progressable progress) throws IOException
append
in class org.apache.hadoop.fs.FileSystem
IOException
public void concat(org.apache.hadoop.fs.Path trg, org.apache.hadoop.fs.Path[] psrcs) throws IOException
concat
in class org.apache.hadoop.fs.FileSystem
IOException
@Deprecated public short getReplication(org.apache.hadoop.fs.Path src) throws IOException
getReplication
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean setReplication(org.apache.hadoop.fs.Path src, short replication) throws IOException
setReplication
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean mkdirs(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission) throws IOException
mkdirs
in class org.apache.hadoop.fs.FileSystem
IOException
public void copyFromLocalFile(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws IOException
copyFromLocalFile
in class org.apache.hadoop.fs.FileSystem
IOException
public void moveFromLocalFile(org.apache.hadoop.fs.Path[] srcs, org.apache.hadoop.fs.Path dst) throws IOException
moveFromLocalFile
in class org.apache.hadoop.fs.FileSystem
IOException
public void moveFromLocalFile(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws IOException
moveFromLocalFile
in class org.apache.hadoop.fs.FileSystem
IOException
public void copyFromLocalFile(boolean delSrc, org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws IOException
copyFromLocalFile
in class org.apache.hadoop.fs.FileSystem
IOException
public void copyFromLocalFile(boolean delSrc, boolean overwrite, org.apache.hadoop.fs.Path[] srcs, org.apache.hadoop.fs.Path dst) throws IOException
copyFromLocalFile
in class org.apache.hadoop.fs.FileSystem
IOException
public void copyFromLocalFile(boolean delSrc, boolean overwrite, org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws IOException
copyFromLocalFile
in class org.apache.hadoop.fs.FileSystem
IOException
public void copyToLocalFile(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws IOException
copyToLocalFile
in class org.apache.hadoop.fs.FileSystem
IOException
public void moveToLocalFile(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws IOException
moveToLocalFile
in class org.apache.hadoop.fs.FileSystem
IOException
public void copyToLocalFile(boolean delSrc, org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws IOException
copyToLocalFile
in class org.apache.hadoop.fs.FileSystem
IOException
public void copyToLocalFile(boolean delSrc, org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst, boolean useRawLocalFileSystem) throws IOException
copyToLocalFile
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.Path startLocalOutput(org.apache.hadoop.fs.Path fsOutputFile, org.apache.hadoop.fs.Path tmpLocalFile) throws IOException
startLocalOutput
in class org.apache.hadoop.fs.FileSystem
IOException
public void completeLocalOutput(org.apache.hadoop.fs.Path fsOutputFile, org.apache.hadoop.fs.Path tmpLocalFile) throws IOException
completeLocalOutput
in class org.apache.hadoop.fs.FileSystem
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.hadoop.fs.FileSystem
IOException
public long getUsed() throws IOException
getUsed
in class org.apache.hadoop.fs.FileSystem
IOException
@Deprecated public long getBlockSize(org.apache.hadoop.fs.Path f) throws IOException
getBlockSize
in class org.apache.hadoop.fs.FileSystem
IOException
@Deprecated public long getDefaultBlockSize()
getDefaultBlockSize
in class org.apache.hadoop.fs.FileSystem
public long getDefaultBlockSize(org.apache.hadoop.fs.Path f)
getDefaultBlockSize
in class org.apache.hadoop.fs.FileSystem
@Deprecated public short getDefaultReplication()
getDefaultReplication
in class org.apache.hadoop.fs.FileSystem
public short getDefaultReplication(org.apache.hadoop.fs.Path path)
getDefaultReplication
in class org.apache.hadoop.fs.FileSystem
public boolean mkdirs(org.apache.hadoop.fs.Path folderPath) throws IOException
mkdirs
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission, EnumSet<org.apache.hadoop.fs.CreateFlag> flags, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress, org.apache.hadoop.fs.Options.ChecksumOpt checksumOpt) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
@Deprecated public 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.FileSystem
IOException
@Deprecated public org.apache.hadoop.fs.FSDataOutputStream createNonRecursive(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress) throws IOException
createNonRecursive
in class org.apache.hadoop.fs.FileSystem
IOException
@Deprecated public org.apache.hadoop.fs.FSDataOutputStream createNonRecursive(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission, EnumSet<org.apache.hadoop.fs.CreateFlag> flags, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress) throws IOException
createNonRecursive
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean createNewFile(org.apache.hadoop.fs.Path f) throws IOException
createNewFile
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream append(org.apache.hadoop.fs.Path f) throws IOException
append
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream append(org.apache.hadoop.fs.Path f, int bufferSize) throws IOException
append
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission, EnumSet<org.apache.hadoop.fs.CreateFlag> flags, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path f) throws FileNotFoundException, IOException
listStatus
in class org.apache.hadoop.fs.FileSystem
FileNotFoundException
IOException
public org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.Path> listCorruptFileBlocks(org.apache.hadoop.fs.Path path) throws IOException
listCorruptFileBlocks
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.PathFilter filter) throws FileNotFoundException, IOException
listStatus
in class org.apache.hadoop.fs.FileSystem
FileNotFoundException
IOException
public org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path[] files) throws FileNotFoundException, IOException
listStatus
in class org.apache.hadoop.fs.FileSystem
FileNotFoundException
IOException
public org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path[] files, org.apache.hadoop.fs.PathFilter filter) throws FileNotFoundException, IOException
listStatus
in class org.apache.hadoop.fs.FileSystem
FileNotFoundException
IOException
public org.apache.hadoop.fs.FileStatus[] globStatus(org.apache.hadoop.fs.Path pathPattern) throws IOException
globStatus
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FileStatus[] globStatus(org.apache.hadoop.fs.Path pathPattern, org.apache.hadoop.fs.PathFilter filter) throws IOException
globStatus
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.LocatedFileStatus> listLocatedStatus(org.apache.hadoop.fs.Path f) throws FileNotFoundException, IOException
listLocatedStatus
in class org.apache.hadoop.fs.FileSystem
FileNotFoundException
IOException
public org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.LocatedFileStatus> listFiles(org.apache.hadoop.fs.Path f, boolean recursive) throws FileNotFoundException, IOException
listFiles
in class org.apache.hadoop.fs.FileSystem
FileNotFoundException
IOException
public org.apache.hadoop.fs.Path getHomeDirectory()
getHomeDirectory
in class org.apache.hadoop.fs.FileSystem
public void setWorkingDirectory(org.apache.hadoop.fs.Path new_dir)
DrillFileSystem
since DrillFileSystem
is immutable.
setWorkingDirectory
in class org.apache.hadoop.fs.FileSystem
UnsupportedOperationException
- when called.public boolean rename(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws IOException
rename
in class org.apache.hadoop.fs.FileSystem
IOException
@Deprecated public boolean delete(org.apache.hadoop.fs.Path f) throws IOException
delete
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean delete(org.apache.hadoop.fs.Path f, boolean recursive) throws IOException
delete
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean deleteOnExit(org.apache.hadoop.fs.Path f) throws IOException
deleteOnExit
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean cancelDeleteOnExit(org.apache.hadoop.fs.Path f)
cancelDeleteOnExit
in class org.apache.hadoop.fs.FileSystem
public boolean exists(org.apache.hadoop.fs.Path f) throws IOException
exists
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean isDirectory(org.apache.hadoop.fs.Path f) throws IOException
isDirectory
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean isFile(org.apache.hadoop.fs.Path f) throws IOException
isFile
in class org.apache.hadoop.fs.FileSystem
IOException
@Deprecated public long getLength(org.apache.hadoop.fs.Path f) throws IOException
getLength
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.ContentSummary getContentSummary(org.apache.hadoop.fs.Path f) throws IOException
getContentSummary
in class org.apache.hadoop.fs.FileSystem
IOException
public URI getUri()
getUri
in class org.apache.hadoop.fs.FileSystem
@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) public String getCanonicalServiceName()
getCanonicalServiceName
in interface org.apache.hadoop.security.token.DelegationTokenIssuer
getCanonicalServiceName
in class org.apache.hadoop.fs.FileSystem
@Deprecated public String getName()
getName
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.Path makeQualified(org.apache.hadoop.fs.Path path)
makeQualified
in class org.apache.hadoop.fs.FileSystem
@InterfaceAudience.Private public org.apache.hadoop.security.token.Token<?> getDelegationToken(String renewer) throws IOException
getDelegationToken
in interface org.apache.hadoop.security.token.DelegationTokenIssuer
getDelegationToken
in class org.apache.hadoop.fs.FileSystem
IOException
@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) public org.apache.hadoop.security.token.Token<?>[] addDelegationTokens(String renewer, org.apache.hadoop.security.Credentials credentials) throws IOException
addDelegationTokens
in interface org.apache.hadoop.security.token.DelegationTokenIssuer
IOException
@InterfaceAudience.LimitedPrivate(value="HDFS") public org.apache.hadoop.fs.FileSystem[] getChildFileSystems()
getChildFileSystems
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.FileStatus file, long start, long len) throws IOException
getFileBlockLocations
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.Path p, long start, long len) throws IOException
getFileBlockLocations
in class org.apache.hadoop.fs.FileSystem
IOException
@Deprecated public org.apache.hadoop.fs.FsServerDefaults getServerDefaults() throws IOException
getServerDefaults
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FsServerDefaults getServerDefaults(org.apache.hadoop.fs.Path p) throws IOException
getServerDefaults
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.Path resolvePath(org.apache.hadoop.fs.Path p) throws IOException
resolvePath
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean truncate(org.apache.hadoop.fs.Path f, long newLength) throws IOException
truncate
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.FileStatus> listStatusIterator(org.apache.hadoop.fs.Path p) throws FileNotFoundException, IOException
listStatusIterator
in class org.apache.hadoop.fs.FileSystem
FileNotFoundException
IOException
public void access(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.permission.FsAction mode) throws org.apache.hadoop.security.AccessControlException, FileNotFoundException, IOException
access
in class org.apache.hadoop.fs.FileSystem
org.apache.hadoop.security.AccessControlException
FileNotFoundException
IOException
public org.apache.hadoop.fs.FileChecksum getFileChecksum(org.apache.hadoop.fs.Path f, long length) throws IOException
getFileChecksum
in class org.apache.hadoop.fs.FileSystem
IOException
public void setXAttr(org.apache.hadoop.fs.Path path, String name, byte[] value) throws IOException
setXAttr
in class org.apache.hadoop.fs.FileSystem
IOException
public void setXAttr(org.apache.hadoop.fs.Path path, String name, byte[] value, EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag) throws IOException
setXAttr
in class org.apache.hadoop.fs.FileSystem
IOException
public byte[] getXAttr(org.apache.hadoop.fs.Path path, String name) throws IOException
getXAttr
in class org.apache.hadoop.fs.FileSystem
IOException
public Map<String,byte[]> getXAttrs(org.apache.hadoop.fs.Path path) throws IOException
getXAttrs
in class org.apache.hadoop.fs.FileSystem
IOException
public Map<String,byte[]> getXAttrs(org.apache.hadoop.fs.Path path, List<String> names) throws IOException
getXAttrs
in class org.apache.hadoop.fs.FileSystem
IOException
public List<String> listXAttrs(org.apache.hadoop.fs.Path path) throws IOException
listXAttrs
in class org.apache.hadoop.fs.FileSystem
IOException
public void removeXAttr(org.apache.hadoop.fs.Path path, String name) throws IOException
removeXAttr
in class org.apache.hadoop.fs.FileSystem
IOException
public InputStream openPossiblyCompressedStream(org.apache.hadoop.fs.Path path) throws IOException
path
- Input file pathIOException
- If the file is unreachable, unavailable or otherwise unreadablepublic org.apache.hadoop.io.compress.CompressionCodec getCodec(org.apache.hadoop.fs.Path path)
CompressionCodec
for a given file. This
can be used to determine the type of compression (if any) which was used. Returns null if the
file is not compressed.path
- The file of unknown compressionpublic void fileOpened(org.apache.hadoop.fs.Path path, DrillFSDataInputStream fsDataInputStream)
OpenFileTracker
DrillFSDataInputStream
to list.fileOpened
in interface OpenFileTracker
public void fileClosed(DrillFSDataInputStream fsDataInputStream)
OpenFileTracker
DrillFSDataInputStream
from opened file list.fileClosed
in interface OpenFileTracker
Copyright © 1970 The Apache Software Foundation. All rights reserved.