| Package | Description |
|---|---|
| org.apache.hadoop.fs |
An abstract file system API.
|
| org.apache.hadoop.fs.viewfs |
ViewFileSystem and ViewFileSystemOverloadScheme classes.
|
| org.apache.hadoop.ha | |
| org.apache.hadoop.security.authorize |
Support for service-level authorization.
|
| org.apache.hadoop.security.rpcauth |
| Modifier and Type | Method | Description |
|---|---|---|
void |
AbstractFileSystem.access(Path path,
FsAction mode) |
The specification of this method matches that of
FileContext.access(Path, FsAction)
except that an UnresolvedLinkException may be thrown if a symlink is
encountered in the path. |
void |
FileContext.access(Path path,
FsAction mode) |
Checks if the user can access a path.
|
void |
FileSystem.access(Path path,
FsAction mode) |
Checks if the user can access a path.
|
void |
FilterFileSystem.access(Path path,
FsAction mode) |
|
void |
FilterFs.access(Path path,
FsAction mode) |
|
boolean |
FileContext.Util.copy(Path src,
Path dst) |
Copy file from src to dest.
|
boolean |
FileContext.Util.copy(Path src,
Path dst,
boolean deleteSource,
boolean overwrite) |
Copy from src to dst, optionally deleting src and overwriting dst.
|
FSDataOutputStream |
AbstractFileSystem.create(Path f,
java.util.EnumSet<CreateFlag> createFlag,
Options.CreateOpts... opts) |
The specification of this method matches that of
FileContext.create(Path, EnumSet, Options.CreateOpts...) except
that the Path f must be fully qualified and the permission is absolute
(i.e. |
FSDataOutputStream |
FileContext.create(Path f,
java.util.EnumSet<CreateFlag> createFlag,
Options.CreateOpts... opts) |
Create or overwrite file on indicated path and returns an output stream for
writing into the file.
|
abstract FSDataOutputStream |
AbstractFileSystem.createInternal(Path f,
java.util.EnumSet<CreateFlag> flag,
FsPermission absolutePermission,
int bufferSize,
short replication,
long blockSize,
Progressable progress,
Options.ChecksumOpt checksumOpt,
boolean createParent) |
The specification of this method matches that of
AbstractFileSystem.create(Path, EnumSet, Options.CreateOpts...) except that the opts
have been declared explicitly. |
void |
FileContext.createSymlink(Path target,
Path link,
boolean createParent) |
Creates a symbolic link to an existing file.
|
void |
FileSystem.createSymlink(Path target,
Path link,
boolean createParent) |
|
void |
FilterFileSystem.createSymlink(Path target,
Path link,
boolean createParent) |
|
abstract boolean |
AbstractFileSystem.delete(Path f,
boolean recursive) |
The specification of this method matches that of
FileContext.delete(Path, boolean) except that Path f must be for
this file system. |
boolean |
FileContext.delete(Path f,
boolean recursive) |
Delete a file.
|
boolean |
FileContext.deleteOnExit(Path f) |
Mark a path to be deleted on JVM shutdown.
|
boolean |
FileContext.Util.exists(Path f) |
Does the file exist?
Note: Avoid using this method if you already have FileStatus in hand.
|
ContentSummary |
FileContext.Util.getContentSummary(Path f) |
Return the
ContentSummary of path f. |
abstract BlockLocation[] |
AbstractFileSystem.getFileBlockLocations(Path f,
long start,
long len) |
The specification of this method matches that of
FileContext.getFileBlockLocations(Path, long, long) except that
Path f must be for this file system. |
BlockLocation[] |
FileContext.getFileBlockLocations(Path f,
long start,
long len) |
Return blockLocation of the given file for the given offset and len.
|
abstract FileChecksum |
AbstractFileSystem.getFileChecksum(Path f) |
The specification of this method matches that of
FileContext.getFileChecksum(Path) except that Path f must be for
this file system. |
FileChecksum |
FileContext.getFileChecksum(Path f) |
Get the checksum of a file.
|
FileStatus |
AbstractFileSystem.getFileLinkStatus(Path f) |
The specification of this method matches that of
FileContext.getFileLinkStatus(Path)
except that an UnresolvedLinkException may be thrown if a symlink is
encountered in the path leading up to the final path component. |
FileStatus |
FileContext.getFileLinkStatus(Path f) |
Return a file status object that represents the path.
|
FileStatus |
FileSystem.getFileLinkStatus(Path f) |
|
FileStatus |
FilterFileSystem.getFileLinkStatus(Path f) |
|
abstract FileStatus |
AbstractFileSystem.getFileStatus(Path f) |
The specification of this method matches that of
FileContext.getFileStatus(Path)
except that an UnresolvedLinkException may be thrown if a symlink is
encountered in the path. |
FileStatus |
FileContext.getFileStatus(Path f) |
Return a file status object that represents the path.
|
abstract FsStatus |
AbstractFileSystem.getFsStatus() |
The specification of this method matches that of
FileContext.getFsStatus(Path). |
FsStatus |
AbstractFileSystem.getFsStatus(Path f) |
The specification of this method matches that of
FileContext.getFsStatus(Path) except that Path f must be for this
file system. |
FsStatus |
FileContext.getFsStatus(Path f) |
Returns a status object describing the use and capacity of the
file system denoted by the Parh argument p.
|
FsStatus |
FilterFs.getFsStatus(Path f) |
|
Path |
FileContext.getLinkTarget(Path f) |
Returns the target of the given symbolic link as it was specified
when the link was created.
|
FileStatus[] |
FileContext.Util.globStatus(Path pathPattern) |
Return all the files that match filePattern and are not checksum
files.
|
FileStatus[] |
FileContext.Util.globStatus(Path pathPattern,
PathFilter filter) |
Return an array of FileStatus objects whose path names match pathPattern
and is accepted by the user-supplied path filter.
|
RemoteIterator<LocatedFileStatus> |
FileContext.Util.listFiles(Path f,
boolean recursive) |
List the statuses and block locations of the files in the given path.
|
RemoteIterator<LocatedFileStatus> |
AbstractFileSystem.listLocatedStatus(Path f) |
The specification of this method matches that of
FileContext.listLocatedStatus(Path) except that Path f
must be for this file system. |
RemoteIterator<LocatedFileStatus> |
ChecksumFs.listLocatedStatus(Path f) |
|
RemoteIterator<LocatedFileStatus> |
FileContext.listLocatedStatus(Path f) |
List the statuses of the files/directories in the given path if the path is
a directory.
|
RemoteIterator<LocatedFileStatus> |
FilterFs.listLocatedStatus(Path f) |
|
abstract FileStatus[] |
AbstractFileSystem.listStatus(Path f) |
The specification of this method matches that of
FileContext.Util.listStatus(Path) except that Path f must be
for this file system. |
RemoteIterator<FileStatus> |
FileContext.listStatus(Path f) |
List the statuses of the files/directories in the given path if the path is
a directory.
|
FileStatus[] |
FileContext.Util.listStatus(Path f) |
List the statuses of the files/directories in the given path
if the path is a directory.
|
FileStatus[] |
FileContext.Util.listStatus(Path[] files) |
|
FileStatus[] |
FileContext.Util.listStatus(Path[] files,
PathFilter filter) |
Filter files/directories in the given list of paths using user-supplied
path filter.
|
FileStatus[] |
FileContext.Util.listStatus(Path f,
PathFilter filter) |
Filter files/directories in the given path using the user-supplied path
filter.
|
RemoteIterator<FileStatus> |
AbstractFileSystem.listStatusIterator(Path f) |
The specification of this method matches that of
FileContext.listStatus(Path) except that Path f must be for this
file system. |
abstract void |
AbstractFileSystem.mkdir(Path dir,
FsPermission permission,
boolean createParent) |
The specification of this method matches that of
FileContext.mkdir(Path, FsPermission, boolean) except that the Path
f must be fully qualified and the permission is absolute (i.e. |
void |
FileContext.mkdir(Path dir,
FsPermission permission,
boolean createParent) |
Make(create) a directory and all the non-existent parents.
|
FSDataInputStream |
AbstractFileSystem.open(Path f) |
The specification of this method matches that of
FileContext.open(Path) except that Path f must be for this
file system. |
abstract FSDataInputStream |
AbstractFileSystem.open(Path f,
int bufferSize) |
The specification of this method matches that of
FileContext.open(Path, int) except that Path f must be for this
file system. |
FSDataInputStream |
FileContext.open(Path f) |
Opens an FSDataInputStream at the indicated Path using
default buffersize.
|
FSDataInputStream |
FileContext.open(Path f,
int bufferSize) |
Opens an FSDataInputStream at the indicated Path.
|
FSDataInputStream |
FilterFs.open(Path f) |
|
void |
AbstractFileSystem.rename(Path src,
Path dst,
Options.Rename... options) |
The specification of this method matches that of
FileContext.rename(Path, Path, Options.Rename...) except that Path
f must be for this file system. |
void |
FileContext.rename(Path src,
Path dst,
Options.Rename... options) |
Renames Path src to Path dst
Fails if src is a file and dst is a directory.
|
abstract void |
AbstractFileSystem.renameInternal(Path src,
Path dst) |
The specification of this method matches that of
FileContext.rename(Path, Path, Options.Rename...) except that Path
f must be for this file system and NO OVERWRITE is performed. |
void |
AbstractFileSystem.renameInternal(Path src,
Path dst,
boolean overwrite) |
The specification of this method matches that of
FileContext.rename(Path, Path, Options.Rename...) except that Path
f must be for this file system. |
void |
ChecksumFs.renameInternal(Path src,
Path dst,
boolean overwrite) |
|
void |
FilterFs.renameInternal(Path src,
Path dst,
boolean overwrite) |
|
protected Path |
FileContext.resolve(Path f) |
Resolves all symbolic links in the specified path.
|
Path |
AbstractFileSystem.resolvePath(Path p) |
Return the fully-qualified path of path f resolving the path
through any internal symlinks or mount point
|
Path |
FileContext.resolvePath(Path f) |
Resolve the path following any symlinks or mount points
|
Path |
FilterFs.resolvePath(Path p) |
|
abstract void |
AbstractFileSystem.setOwner(Path f,
java.lang.String username,
java.lang.String groupname) |
The specification of this method matches that of
FileContext.setOwner(Path, String, String) except that Path f must
be for this file system. |
void |
FileContext.setOwner(Path f,
java.lang.String username,
java.lang.String groupname) |
Set owner of a path (i.e.
|
abstract void |
AbstractFileSystem.setPermission(Path f,
FsPermission permission) |
The specification of this method matches that of
FileContext.setPermission(Path, FsPermission) except that Path f
must be for this file system. |
void |
FileContext.setPermission(Path f,
FsPermission permission) |
Set permission of a path.
|
abstract boolean |
AbstractFileSystem.setReplication(Path f,
short replication) |
The specification of this method matches that of
FileContext.setReplication(Path, short) except that Path f must be
for this file system. |
boolean |
FileContext.setReplication(Path f,
short replication) |
Set replication for an existing file.
|
abstract void |
AbstractFileSystem.setTimes(Path f,
long mtime,
long atime) |
The specification of this method matches that of
FileContext.setTimes(Path, long, long) except that Path f must be
for this file system. |
void |
FileContext.setTimes(Path f,
long mtime,
long atime) |
Set access time of a file.
|
abstract void |
AbstractFileSystem.setVerifyChecksum(boolean verifyChecksum) |
The specification of this method matches that of
FileContext.setVerifyChecksum(boolean, Path) except that Path f
must be for this file system. |
void |
FileContext.setVerifyChecksum(boolean verifyChecksum,
Path f) |
Set the verify checksum flag for the file system denoted by the path.
|
boolean |
AbstractFileSystem.truncate(Path f,
long newLength) |
The specification of this method matches that of
FileContext.truncate(Path, long) except that Path f must be for
this file system. |
boolean |
FileContext.truncate(Path f,
long newLength) |
Truncate the file in the indicated path to the indicated size.
|
boolean |
FilterFs.truncate(Path f,
long newLength) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
ViewFileSystem.access(Path path,
FsAction mode) |
|
void |
ViewFs.access(Path path,
FsAction mode) |
|
FSDataOutputStream |
ViewFs.createInternal(Path f,
java.util.EnumSet<CreateFlag> flag,
FsPermission absolutePermission,
int bufferSize,
short replication,
long blockSize,
Progressable progress,
Options.ChecksumOpt checksumOpt,
boolean createParent) |
|
boolean |
ViewFileSystem.delete(Path f) |
|
boolean |
ViewFileSystem.delete(Path f,
boolean recursive) |
|
boolean |
ViewFs.delete(Path f,
boolean recursive) |
|
BlockLocation[] |
ViewFs.getFileBlockLocations(Path f,
long start,
long len) |
|
FileChecksum |
ViewFileSystem.getFileChecksum(Path f) |
|
FileChecksum |
ViewFileSystem.getFileChecksum(Path f,
long length) |
|
FileChecksum |
ViewFs.getFileChecksum(Path f) |
|
FileStatus |
ViewFs.getFileLinkStatus(Path f) |
|
FileStatus |
ViewFileSystem.getFileStatus(Path f) |
Return a file status object that represents the path.
|
FileStatus |
ViewFs.getFileStatus(Path f) |
The specification of this method matches that of
FileContext.getFileStatus(Path)
except that an UnresolvedLinkException may be thrown if a symlink is
encountered in the path. |
FsStatus |
ViewFs.getFsStatus() |
|
RemoteIterator<LocatedFileStatus> |
ViewFs.listLocatedStatus(Path f) |
|
FileStatus[] |
ViewFileSystem.listStatus(Path f) |
List the statuses of the files/directories in the given path if the path is
a directory.
|
FileStatus[] |
ViewFs.listStatus(Path f) |
The specification of this method matches that of
FileContext.Util.listStatus(Path) except that Path f must be
for this file system. |
RemoteIterator<FileStatus> |
ViewFs.listStatusIterator(Path f) |
|
void |
ViewFs.mkdir(Path dir,
FsPermission permission,
boolean createParent) |
|
FSDataInputStream |
ViewFileSystem.open(Path f,
int bufferSize) |
|
FSDataInputStream |
ViewFs.open(Path f,
int bufferSize) |
|
void |
ViewFs.renameInternal(Path src,
Path dst) |
|
Path |
ViewFs.resolvePath(Path f) |
|
void |
ViewFileSystem.setOwner(Path f,
java.lang.String username,
java.lang.String groupname) |
|
void |
ViewFs.setOwner(Path f,
java.lang.String username,
java.lang.String groupname) |
|
void |
ViewFileSystem.setPermission(Path f,
FsPermission permission) |
|
void |
ViewFs.setPermission(Path f,
FsPermission permission) |
|
boolean |
ViewFileSystem.setReplication(Path f,
short replication) |
|
boolean |
ViewFs.setReplication(Path f,
short replication) |
|
void |
ViewFileSystem.setTimes(Path f,
long mtime,
long atime) |
|
void |
ViewFs.setTimes(Path f,
long mtime,
long atime) |
|
void |
ViewFs.setVerifyChecksum(boolean verifyChecksum) |
|
boolean |
ViewFs.truncate(Path f,
long newLength) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
ZKFCProtocol.cedeActive(int millisToCede) |
Request that this service yield from the active node election for the
specified time period.
|
void |
ZKFCRpcServer.cedeActive(int millisToCede) |
|
protected abstract void |
ZKFailoverController.checkRpcAdminAccess() |
|
HAServiceStatus |
HAServiceProtocol.getServiceStatus() |
Return the current status of the service.
|
void |
ZKFCProtocol.gracefulFailover() |
Request that this node try to become active through a graceful failover.
|
void |
ZKFCRpcServer.gracefulFailover() |
|
void |
HAServiceProtocol.monitorHealth() |
Monitor the health of service.
|
void |
HAServiceProtocol.transitionToActive(HAServiceProtocol.StateChangeRequestInfo reqInfo) |
Request service to transition to active state.
|
void |
HAServiceProtocol.transitionToObserver(HAServiceProtocol.StateChangeRequestInfo reqInfo) |
Request service to transition to observer state.
|
void |
HAServiceProtocol.transitionToStandby(HAServiceProtocol.StateChangeRequestInfo reqInfo) |
Request service to transition to standby state.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
AuthorizationException |
An exception class for authorization-related issues.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
FatalAccessControlException |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.