@InterfaceAudience.Private
public class HttpFSFileSystem
extends org.apache.hadoop.fs.FileSystem
implements org.apache.hadoop.fs.DelegationTokenRenewer.Renewable
This implementation allows a user to access HDFS over HTTP via a HttpFSServer server.
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpFSFileSystem.FILE_TYPE |
static class |
HttpFSFileSystem.Operation |
| Constructor and Description |
|---|
HttpFSFileSystem() |
| Modifier and Type | Method and Description |
|---|---|
void |
access(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.permission.FsAction mode) |
void |
allowSnapshot(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.FSDataOutputStream |
append(org.apache.hadoop.fs.Path f,
int bufferSize,
org.apache.hadoop.util.Progressable progress)
Append to an existing file (optional operation).
|
void |
cancelDelegationToken(org.apache.hadoop.security.token.Token<?> token) |
void |
concat(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.Path[] psrcs)
Concat existing files together.
|
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)
Opens an FSDataOutputStream at the indicated Path with write-progress
reporting.
|
org.apache.hadoop.fs.Path |
createSnapshot(org.apache.hadoop.fs.Path path,
String snapshotName) |
boolean |
delete(org.apache.hadoop.fs.Path f)
Deprecated.
Use delete(Path, boolean) instead
|
boolean |
delete(org.apache.hadoop.fs.Path f,
boolean recursive)
Delete a file.
|
void |
deleteSnapshot(org.apache.hadoop.fs.Path path,
String snapshotName) |
void |
disallowSnapshot(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.permission.AclStatus |
getAclStatus(org.apache.hadoop.fs.Path path)
Get the ACL information for a given file
|
Map<String,String> |
getAllErasureCodingCodecs() |
Collection<org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyInfo> |
getAllErasureCodingPolicies() |
Collection<org.apache.hadoop.hdfs.protocol.BlockStoragePolicy> |
getAllStoragePolicies() |
org.apache.hadoop.fs.ContentSummary |
getContentSummary(org.apache.hadoop.fs.Path f) |
protected int |
getDefaultPort()
Get the default port for this file system.
|
org.apache.hadoop.security.token.Token<?> |
getDelegationToken(String renewer) |
org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy |
getErasureCodingPolicy(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.BlockLocation[] |
getFileBlockLocations(org.apache.hadoop.fs.FileStatus status,
long offset,
long length) |
org.apache.hadoop.fs.BlockLocation[] |
getFileBlockLocations(org.apache.hadoop.fs.Path path,
long start,
long len) |
org.apache.hadoop.fs.FileChecksum |
getFileChecksum(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.fs.FileStatus |
getFileLinkStatus(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.FileStatus |
getFileStatus(org.apache.hadoop.fs.Path f)
Return a file status object that represents the path.
|
org.apache.hadoop.fs.Path |
getHomeDirectory()
Return the current user's home directory in this filesystem.
|
org.apache.hadoop.fs.QuotaUsage |
getQuotaUsage(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.security.token.Token<?> |
getRenewToken() |
String |
getScheme() |
org.apache.hadoop.fs.FsServerDefaults |
getServerDefaults() |
org.apache.hadoop.fs.FsServerDefaults |
getServerDefaults(org.apache.hadoop.fs.Path p) |
org.apache.hadoop.hdfs.protocol.SnapshotDiffReport |
getSnapshotDiffReport(org.apache.hadoop.fs.Path path,
String snapshotOldName,
String snapshotNewName) |
org.apache.hadoop.hdfs.protocol.SnapshotDiffReportListing |
getSnapshotDiffReportListing(org.apache.hadoop.fs.Path path,
String snapshotOldName,
String snapshotNewName,
byte[] snapshotDiffStartPath,
Integer snapshotDiffIndex) |
org.apache.hadoop.hdfs.protocol.SnapshotStatus[] |
getSnapshotListing(org.apache.hadoop.fs.Path snapshotRoot) |
org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus[] |
getSnapshottableDirectoryList() |
org.apache.hadoop.fs.FsStatus |
getStatus(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.hdfs.protocol.BlockStoragePolicy |
getStoragePolicy(org.apache.hadoop.fs.Path src) |
org.apache.hadoop.fs.Path |
getTrashRoot(org.apache.hadoop.fs.Path fullPath)
Get the root directory of Trash for a path in HDFS.
|
Collection<org.apache.hadoop.fs.FileStatus> |
getTrashRoots(boolean allUsers) |
URI |
getUri()
Returns a URI whose scheme and authority identify this FileSystem.
|
org.apache.hadoop.fs.Path |
getWorkingDirectory()
Get the current working directory for the given file system
|
byte[] |
getXAttr(org.apache.hadoop.fs.Path f,
String name) |
Map<String,byte[]> |
getXAttrs(org.apache.hadoop.fs.Path f) |
Map<String,byte[]> |
getXAttrs(org.apache.hadoop.fs.Path f,
List<String> names) |
boolean |
hasPathCapability(org.apache.hadoop.fs.Path path,
String capability)
This filesystem's capabilities must be in sync with that of
DistributedFileSystem.hasPathCapability() except
where the feature is not exposed (e.g. |
void |
initialize(URI name,
org.apache.hadoop.conf.Configuration conf)
Called after a new FileSystem instance is constructed.
|
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path f)
Get
FileStatus of files/directories in the given path. |
org.apache.hadoop.fs.FileSystem.DirectoryEntries |
listStatusBatch(org.apache.hadoop.fs.Path f,
byte[] token)
Get
DirectoryEntries of the given path. |
List<String> |
listXAttrs(org.apache.hadoop.fs.Path f) |
boolean |
mkdirs(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission)
Make the given file and all non-existent parents into
directories.
|
void |
modifyAclEntries(org.apache.hadoop.fs.Path path,
List<org.apache.hadoop.fs.permission.AclEntry> aclSpec)
Modify the ACL entries for a file.
|
org.apache.hadoop.fs.FSDataInputStream |
open(org.apache.hadoop.fs.Path f,
int bufferSize)
Opens an FSDataInputStream at the indicated Path.
|
static String |
permissionToString(org.apache.hadoop.fs.permission.FsPermission p)
Converts a
FsPermission to a Unix octal representation. |
void |
removeAcl(org.apache.hadoop.fs.Path path)
Remove all ACLs from a file
|
void |
removeAclEntries(org.apache.hadoop.fs.Path path,
List<org.apache.hadoop.fs.permission.AclEntry> aclSpec)
Remove the specified ACL entries from a file
|
void |
removeDefaultAcl(org.apache.hadoop.fs.Path path)
Removes the default ACL for the given file
|
void |
removeXAttr(org.apache.hadoop.fs.Path f,
String name) |
boolean |
rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
Renames Path src to Path dst.
|
void |
renameSnapshot(org.apache.hadoop.fs.Path path,
String snapshotOldName,
String snapshotNewName) |
long |
renewDelegationToken(org.apache.hadoop.security.token.Token<?> token) |
void |
satisfyStoragePolicy(org.apache.hadoop.fs.Path path) |
void |
setAcl(org.apache.hadoop.fs.Path path,
List<org.apache.hadoop.fs.permission.AclEntry> aclSpec)
Set the ACLs for the given file
|
<T extends org.apache.hadoop.security.token.TokenIdentifier> |
setDelegationToken(org.apache.hadoop.security.token.Token<T> token) |
void |
setErasureCodingPolicy(org.apache.hadoop.fs.Path path,
String policyName) |
void |
setOwner(org.apache.hadoop.fs.Path p,
String username,
String groupname)
Set owner of a path (i.e.
|
void |
setPermission(org.apache.hadoop.fs.Path p,
org.apache.hadoop.fs.permission.FsPermission permission)
Set permission of a path.
|
boolean |
setReplication(org.apache.hadoop.fs.Path src,
short replication)
Set replication for an existing file.
|
void |
setStoragePolicy(org.apache.hadoop.fs.Path src,
String policyName) |
void |
setTimes(org.apache.hadoop.fs.Path p,
long mtime,
long atime)
Set access time of a file
|
void |
setWorkingDirectory(org.apache.hadoop.fs.Path newDir)
Set the current working directory for the given file system.
|
void |
setXAttr(org.apache.hadoop.fs.Path f,
String name,
byte[] value,
EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag) |
boolean |
truncate(org.apache.hadoop.fs.Path f,
long newLength)
Truncate a file.
|
void |
unsetErasureCodingPolicy(org.apache.hadoop.fs.Path path) |
void |
unsetStoragePolicy(org.apache.hadoop.fs.Path src) |
append, append, append, append, appendFile, areSymlinksEnabled, cancelDeleteOnExit, canonicalizeUri, checkPath, clearStatistics, close, closeAll, closeAllForUGI, completeLocalOutput, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, create, create, createBulkDelete, createDataInputStreamBuilder, createDataInputStreamBuilder, createDataOutputStreamBuilder, createFile, createMultipartUploader, createNewFile, createNonRecursive, createNonRecursive, createNonRecursive, createPathHandle, createSnapshot, createSymlink, deleteOnExit, enableSymlinks, exists, fixRelativePart, get, get, get, getAdditionalTokenIssuers, getAllStatistics, getBlockSize, getCanonicalServiceName, getCanonicalUri, getChildFileSystems, getDefaultBlockSize, getDefaultBlockSize, getDefaultReplication, getDefaultReplication, getDefaultUri, getEnclosingRoot, getFileChecksum, getFileSystemClass, getFSofPath, getGlobalStorageStatistics, getInitialWorkingDirectory, getLength, getLinkTarget, getLocal, getName, getNamed, getPathHandle, getReplication, getStatistics, getStatistics, getStatus, getStorageStatistics, getUsed, getUsed, globStatus, globStatus, isDirectory, isFile, listCorruptFileBlocks, listFiles, listLocatedStatus, listLocatedStatus, listStatus, listStatus, listStatus, listStatusIterator, makeQualified, mkdirs, mkdirs, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, msync, newInstance, newInstance, newInstance, newInstanceLocal, open, open, open, openFile, openFile, openFileWithOptions, openFileWithOptions, primitiveCreate, primitiveMkdir, primitiveMkdir, printStatistics, processDeleteOnExit, rename, resolveLink, resolvePath, setDefaultUri, setDefaultUri, setQuota, setQuotaByStorageType, setVerifyChecksum, setWriteChecksum, setXAttr, startLocalOutput, supportsSymlinkspublic static final String SERVICE_NAME
public static final String SERVICE_VERSION
public static final String SCHEME
public static final String OP_PARAM
public static final String DO_AS_PARAM
public static final String OVERWRITE_PARAM
public static final String REPLICATION_PARAM
public static final String BLOCKSIZE_PARAM
public static final String PERMISSION_PARAM
public static final String UNMASKED_PERMISSION_PARAM
public static final String ACLSPEC_PARAM
public static final String DESTINATION_PARAM
public static final String RECURSIVE_PARAM
public static final String SOURCES_PARAM
public static final String OWNER_PARAM
public static final String GROUP_PARAM
public static final String MODIFICATION_TIME_PARAM
public static final String ACCESS_TIME_PARAM
public static final String XATTR_NAME_PARAM
public static final String XATTR_VALUE_PARAM
public static final String XATTR_SET_FLAG_PARAM
public static final String XATTR_ENCODING_PARAM
public static final String NEW_LENGTH_PARAM
public static final String START_AFTER_PARAM
public static final String POLICY_NAME_PARAM
public static final String SNAPSHOT_NAME_PARAM
public static final String OLD_SNAPSHOT_NAME_PARAM
public static final String SNAPSHOT_DIFF_START_PATH
public static final String SNAPSHOT_DIFF_INDEX
public static final String FSACTION_MODE_PARAM
public static final String EC_POLICY_NAME_PARAM
public static final String OFFSET_PARAM
public static final String LENGTH_PARAM
public static final String ALLUSERS_PARAM
public static final Short DEFAULT_PERMISSION
public static final String ACLSPEC_DEFAULT
public static final String RENAME_JSON
public static final String TRUNCATE_JSON
public static final String DELETE_JSON
public static final String MKDIRS_JSON
public static final String HOME_DIR_JSON
public static final String TRASH_DIR_JSON
public static final String SET_REPLICATION_JSON
public static final String UPLOAD_CONTENT_TYPE
public static final String SNAPSHOT_JSON
public static final String FILE_STATUSES_JSON
public static final String FILE_STATUS_JSON
public static final String FS_STATUS_JSON
public static final String PATH_SUFFIX_JSON
public static final String TYPE_JSON
public static final String LENGTH_JSON
public static final String OWNER_JSON
public static final String GROUP_JSON
public static final String PERMISSION_JSON
public static final String ACCESS_TIME_JSON
public static final String MODIFICATION_TIME_JSON
public static final String BLOCK_SIZE_JSON
public static final String CHILDREN_NUM_JSON
public static final String FILE_ID_JSON
public static final String REPLICATION_JSON
public static final String STORAGEPOLICY_JSON
public static final String ECPOLICYNAME_JSON
public static final String XATTRS_JSON
public static final String XATTR_NAME_JSON
public static final String XATTR_VALUE_JSON
public static final String XATTRNAMES_JSON
public static final String ECPOLICY_JSON
public static final String SYMLINK_JSON
public static final String CAPACITY_JSON
public static final String USED_JSON
public static final String REMAINING_JSON
public static final String FILE_CHECKSUM_JSON
public static final String CHECKSUM_ALGORITHM_JSON
public static final String CHECKSUM_BYTES_JSON
public static final String CHECKSUM_LENGTH_JSON
public static final String CONTENT_SUMMARY_JSON
public static final String CONTENT_SUMMARY_DIRECTORY_COUNT_JSON
public static final String CONTENT_SUMMARY_ECPOLICY_JSON
public static final String CONTENT_SUMMARY_FILE_COUNT_JSON
public static final String CONTENT_SUMMARY_LENGTH_JSON
public static final String QUOTA_USAGE_JSON
public static final String QUOTA_USAGE_FILE_AND_DIRECTORY_COUNT_JSON
public static final String QUOTA_USAGE_QUOTA_JSON
public static final String QUOTA_USAGE_SPACE_CONSUMED_JSON
public static final String QUOTA_USAGE_SPACE_QUOTA_JSON
public static final String QUOTA_USAGE_CONSUMED_JSON
public static final String QUOTA_USAGE_TYPE_QUOTA_JSON
public static final String ACL_STATUS_JSON
public static final String ACL_STICKY_BIT_JSON
public static final String ACL_ENTRIES_JSON
public static final String ACL_BIT_JSON
public static final String ENC_BIT_JSON
public static final String EC_BIT_JSON
public static final String SNAPSHOT_BIT_JSON
public static final String DIRECTORY_LISTING_JSON
public static final String PARTIAL_LISTING_JSON
public static final String REMAINING_ENTRIES_JSON
public static final String STORAGE_POLICIES_JSON
public static final String STORAGE_POLICY_JSON
public static final String BLOCK_LOCATIONS_JSON
public static final int HTTP_TEMPORARY_REDIRECT
public void initialize(URI name, org.apache.hadoop.conf.Configuration conf) throws IOException
initialize in class org.apache.hadoop.fs.FileSystemname - a uri whose authority section names the host, port, etc. for this FileSystemconf - the configurationIOExceptionpublic String getScheme()
getScheme in class org.apache.hadoop.fs.FileSystempublic URI getUri()
getUri in class org.apache.hadoop.fs.FileSystemprotected int getDefaultPort()
getDefaultPort in class org.apache.hadoop.fs.FileSystempublic org.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path f,
int bufferSize)
throws IOException
IMPORTANT: the returned FSDataInputStream does not support the
PositionReadable and Seekable methods.
open in class org.apache.hadoop.fs.FileSystemf - the file name to openbufferSize - the size of the buffer to be used.IOExceptionpublic static String permissionToString(org.apache.hadoop.fs.permission.FsPermission p)
FsPermission to a Unix octal representation.p - the permission.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
IMPORTANT: The Progressable parameter is not used.
create in class org.apache.hadoop.fs.FileSystemf - the file name to open.permission - file permission.overwrite - if a file with this name already exists, then if true,
the file will be overwritten, and if false an error will be thrown.bufferSize - the size of the buffer to be used.replication - required block replication for the file.blockSize - block size.progress - progressable.IOExceptionsetPermission(Path, FsPermission)public org.apache.hadoop.fs.FSDataOutputStream append(org.apache.hadoop.fs.Path f,
int bufferSize,
org.apache.hadoop.util.Progressable progress)
throws IOException
IMPORTANT: The Progressable parameter is not used.
append in class org.apache.hadoop.fs.FileSystemf - the existing file to be appended.bufferSize - the size of the buffer to be used.progress - for reporting progress if it is not null.IOExceptionpublic boolean truncate(org.apache.hadoop.fs.Path f,
long newLength)
throws IOException
truncate in class org.apache.hadoop.fs.FileSystemf - the file to be truncated.newLength - The size the file is to be truncated to.IOExceptionpublic void concat(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.Path[] psrcs)
throws IOException
concat in class org.apache.hadoop.fs.FileSystemf - the path to the target destination.psrcs - the paths to the sources to use for the concatenation.IOExceptionpublic boolean rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
rename in class org.apache.hadoop.fs.FileSystemIOException@Deprecated public boolean delete(org.apache.hadoop.fs.Path f) throws IOException
delete in class org.apache.hadoop.fs.FileSystemIOExceptionpublic boolean delete(org.apache.hadoop.fs.Path f,
boolean recursive)
throws IOException
delete in class org.apache.hadoop.fs.FileSystemf - the path to delete.recursive - if path is a directory and set to
true, the directory is deleted else throws an exception. In
case of a file the recursive can be set to either true or false.IOExceptionpublic org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path f)
throws IOException
FileStatus of files/directories in the given path. If path
corresponds to a file then FileStatus of that file is returned.
Else if path represents a directory then FileStatus of all
files/directories inside given path is returned.listStatus in class org.apache.hadoop.fs.FileSystemf - given pathIOExceptionpublic org.apache.hadoop.fs.FileSystem.DirectoryEntries listStatusBatch(org.apache.hadoop.fs.Path f,
byte[] token)
throws FileNotFoundException,
IOException
DirectoryEntries of the given path. DirectoryEntries
contains an array of FileStatus, as well as iteration information.listStatusBatch in class org.apache.hadoop.fs.FileSystemf - given pathDirectoryEntries for given pathFileNotFoundExceptionIOExceptionpublic void setWorkingDirectory(org.apache.hadoop.fs.Path newDir)
setWorkingDirectory in class org.apache.hadoop.fs.FileSystemnewDir - new directory.public org.apache.hadoop.fs.Path getWorkingDirectory()
getWorkingDirectory in class org.apache.hadoop.fs.FileSystempublic boolean mkdirs(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission)
throws IOException
mkdirs in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path f)
throws IOException
getFileStatus in class org.apache.hadoop.fs.FileSystemf - The path we want information fromFileNotFoundException - when the path does not exist;
IOException see specific implementationIOExceptionpublic org.apache.hadoop.fs.Path getHomeDirectory()
getHomeDirectory in class org.apache.hadoop.fs.FileSystempublic org.apache.hadoop.fs.Path getTrashRoot(org.apache.hadoop.fs.Path fullPath)
getTrashRoot in class org.apache.hadoop.fs.FileSystemfullPath - the trash root of the path to be determined.public void setOwner(org.apache.hadoop.fs.Path p,
String username,
String groupname)
throws IOException
setOwner in class org.apache.hadoop.fs.FileSystemp - The pathusername - If it is null, the original username remains unchanged.groupname - If it is null, the original groupname remains unchanged.IOExceptionpublic void setPermission(org.apache.hadoop.fs.Path p,
org.apache.hadoop.fs.permission.FsPermission permission)
throws IOException
setPermission in class org.apache.hadoop.fs.FileSystemp - path.permission - permission.IOExceptionpublic void setTimes(org.apache.hadoop.fs.Path p,
long mtime,
long atime)
throws IOException
setTimes in class org.apache.hadoop.fs.FileSystemp - The pathmtime - Set the modification time of this file.
The number of milliseconds since Jan 1, 1970.
A value of -1 means that this call should not set modification time.atime - Set the access time of this file.
The number of milliseconds since Jan 1, 1970.
A value of -1 means that this call should not set access time.IOExceptionpublic boolean setReplication(org.apache.hadoop.fs.Path src,
short replication)
throws IOException
setReplication in class org.apache.hadoop.fs.FileSystemsrc - file namereplication - new replicationIOExceptionpublic 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.FileSystempath - Path to modifyaclSpec - describing modificationsIOExceptionpublic 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.FileSystempath - Path to modifyaclSpec - describing entries to removeIOExceptionpublic void removeDefaultAcl(org.apache.hadoop.fs.Path path)
throws IOException
removeDefaultAcl in class org.apache.hadoop.fs.FileSystempath - Path from which to remove the default ACL.IOExceptionpublic void removeAcl(org.apache.hadoop.fs.Path path)
throws IOException
removeAcl in class org.apache.hadoop.fs.FileSystempath - Path from which to remove all ACLsIOExceptionpublic 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.FileSystempath - Path to modifyaclSpec - describing modifications, must include
entries for user, group, and others for compatibility
with permission bits.IOExceptionpublic org.apache.hadoop.fs.permission.AclStatus getAclStatus(org.apache.hadoop.fs.Path path)
throws IOException
getAclStatus in class org.apache.hadoop.fs.FileSystempath - Path to acquire ACL info forIOExceptionpublic org.apache.hadoop.fs.ContentSummary getContentSummary(org.apache.hadoop.fs.Path f)
throws IOException
getContentSummary in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.QuotaUsage getQuotaUsage(org.apache.hadoop.fs.Path f)
throws IOException
getQuotaUsage in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.FileChecksum getFileChecksum(org.apache.hadoop.fs.Path f)
throws IOException
getFileChecksum in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.security.token.Token<?> getDelegationToken(String renewer) throws IOException
getDelegationToken in interface org.apache.hadoop.security.token.DelegationTokenIssuergetDelegationToken in class org.apache.hadoop.fs.FileSystemIOExceptionpublic long renewDelegationToken(org.apache.hadoop.security.token.Token<?> token)
throws IOException
IOExceptionpublic void cancelDelegationToken(org.apache.hadoop.security.token.Token<?> token)
throws IOException
IOExceptionpublic org.apache.hadoop.security.token.Token<?> getRenewToken()
getRenewToken in interface org.apache.hadoop.fs.DelegationTokenRenewer.Renewablepublic <T extends org.apache.hadoop.security.token.TokenIdentifier> void setDelegationToken(org.apache.hadoop.security.token.Token<T> token)
setDelegationToken in interface org.apache.hadoop.fs.DelegationTokenRenewer.Renewablepublic void setXAttr(org.apache.hadoop.fs.Path f,
String name,
byte[] value,
EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag)
throws IOException
setXAttr in class org.apache.hadoop.fs.FileSystemIOExceptionpublic byte[] getXAttr(org.apache.hadoop.fs.Path f,
String name)
throws IOException
getXAttr in class org.apache.hadoop.fs.FileSystemIOExceptionpublic Map<String,byte[]> getXAttrs(org.apache.hadoop.fs.Path f) throws IOException
getXAttrs in class org.apache.hadoop.fs.FileSystemIOExceptionpublic Map<String,byte[]> getXAttrs(org.apache.hadoop.fs.Path f, List<String> names) throws IOException
getXAttrs in class org.apache.hadoop.fs.FileSystemIOExceptionpublic List<String> listXAttrs(org.apache.hadoop.fs.Path f) throws IOException
listXAttrs in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void removeXAttr(org.apache.hadoop.fs.Path f,
String name)
throws IOException
removeXAttr in class org.apache.hadoop.fs.FileSystemIOExceptionpublic Collection<org.apache.hadoop.hdfs.protocol.BlockStoragePolicy> getAllStoragePolicies() throws IOException
getAllStoragePolicies in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.hdfs.protocol.BlockStoragePolicy getStoragePolicy(org.apache.hadoop.fs.Path src)
throws IOException
getStoragePolicy in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void setStoragePolicy(org.apache.hadoop.fs.Path src,
String policyName)
throws IOException
setStoragePolicy in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void unsetStoragePolicy(org.apache.hadoop.fs.Path src)
throws IOException
unsetStoragePolicy in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void allowSnapshot(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionpublic void disallowSnapshot(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionpublic final org.apache.hadoop.fs.Path createSnapshot(org.apache.hadoop.fs.Path path,
String snapshotName)
throws IOException
createSnapshot in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void renameSnapshot(org.apache.hadoop.fs.Path path,
String snapshotOldName,
String snapshotNewName)
throws IOException
renameSnapshot in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void deleteSnapshot(org.apache.hadoop.fs.Path path,
String snapshotName)
throws IOException
deleteSnapshot in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.hdfs.protocol.SnapshotDiffReport getSnapshotDiffReport(org.apache.hadoop.fs.Path path,
String snapshotOldName,
String snapshotNewName)
throws IOException
IOExceptionpublic org.apache.hadoop.hdfs.protocol.SnapshotDiffReportListing getSnapshotDiffReportListing(org.apache.hadoop.fs.Path path,
String snapshotOldName,
String snapshotNewName,
byte[] snapshotDiffStartPath,
Integer snapshotDiffIndex)
throws IOException
IOExceptionpublic org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus[] getSnapshottableDirectoryList()
throws IOException
IOExceptionpublic org.apache.hadoop.hdfs.protocol.SnapshotStatus[] getSnapshotListing(org.apache.hadoop.fs.Path snapshotRoot)
throws IOException
IOExceptionpublic boolean hasPathCapability(org.apache.hadoop.fs.Path path,
String capability)
throws IOException
DistributedFileSystem.hasPathCapability() except
where the feature is not exposed (e.g. symlinks).
hasPathCapability in interface org.apache.hadoop.fs.PathCapabilitieshasPathCapability in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.FsServerDefaults getServerDefaults()
throws IOException
getServerDefaults in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.FsServerDefaults getServerDefaults(org.apache.hadoop.fs.Path p)
throws IOException
getServerDefaults in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void access(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.permission.FsAction mode)
throws IOException
access in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void setErasureCodingPolicy(org.apache.hadoop.fs.Path path,
String policyName)
throws IOException
IOExceptionpublic org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy getErasureCodingPolicy(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionpublic void unsetErasureCodingPolicy(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionpublic void satisfyStoragePolicy(org.apache.hadoop.fs.Path path)
throws IOException
satisfyStoragePolicy in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.Path path,
long start,
long len)
throws IOException
getFileBlockLocations in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.FileStatus status,
long offset,
long length)
throws IOException
getFileBlockLocations in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.FileStatus getFileLinkStatus(org.apache.hadoop.fs.Path path)
throws IOException
getFileLinkStatus in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.FsStatus getStatus(org.apache.hadoop.fs.Path path)
throws IOException
getStatus in class org.apache.hadoop.fs.FileSystemIOExceptionpublic Collection<org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyInfo> getAllErasureCodingPolicies() throws IOException
IOExceptionpublic Map<String,String> getAllErasureCodingCodecs() throws IOException
IOExceptionpublic Collection<org.apache.hadoop.fs.FileStatus> getTrashRoots(boolean allUsers)
getTrashRoots in class org.apache.hadoop.fs.FileSystemCopyright © 2008–2024 Apache Software Foundation. All rights reserved.