java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.conf.Configurable, org.apache.hadoop.fs.BulkDeleteSource, org.apache.hadoop.fs.DelegationTokenRenewer.Renewable, org.apache.hadoop.fs.PathCapabilities, org.apache.hadoop.security.token.DelegationTokenIssuerHttpsFSFileSystem@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 | Description |
|---|---|---|
static class |
HttpFSFileSystem.FILE_TYPE |
|
static class |
HttpFSFileSystem.Operation |
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ACCESS_TIME_JSON |
|
static java.lang.String |
ACCESS_TIME_PARAM |
|
static java.lang.String |
ACL_BIT_JSON |
|
static java.lang.String |
ACL_ENTRIES_JSON |
|
static java.lang.String |
ACL_STATUS_JSON |
|
static java.lang.String |
ACL_STICKY_BIT_JSON |
|
static java.lang.String |
ACLSPEC_DEFAULT |
|
static java.lang.String |
ACLSPEC_PARAM |
|
static java.lang.String |
ALLUSERS_PARAM |
|
static java.lang.String |
BLOCK_LOCATIONS_JSON |
|
static java.lang.String |
BLOCK_SIZE_JSON |
|
static java.lang.String |
BLOCKSIZE_PARAM |
|
static java.lang.String |
CAPACITY_JSON |
|
static java.lang.String |
CHECKSUM_ALGORITHM_JSON |
|
static java.lang.String |
CHECKSUM_BYTES_JSON |
|
static java.lang.String |
CHECKSUM_LENGTH_JSON |
|
static java.lang.String |
CHILDREN_NUM_JSON |
|
static java.lang.String |
CONTENT_SUMMARY_DIRECTORY_COUNT_JSON |
|
static java.lang.String |
CONTENT_SUMMARY_ECPOLICY_JSON |
|
static java.lang.String |
CONTENT_SUMMARY_FILE_COUNT_JSON |
|
static java.lang.String |
CONTENT_SUMMARY_JSON |
|
static java.lang.String |
CONTENT_SUMMARY_LENGTH_JSON |
|
static java.lang.Short |
DEFAULT_PERMISSION |
|
static java.lang.String |
DELETE_JSON |
|
static java.lang.String |
DESTINATION_PARAM |
|
static java.lang.String |
DIRECTORY_LISTING_JSON |
|
static java.lang.String |
DO_AS_PARAM |
|
static java.lang.String |
EC_BIT_JSON |
|
static java.lang.String |
EC_POLICY_NAME_PARAM |
|
static java.lang.String |
ECPOLICY_JSON |
|
static java.lang.String |
ECPOLICYNAME_JSON |
|
static java.lang.String |
ENC_BIT_JSON |
|
static java.lang.String |
FILE_CHECKSUM_JSON |
|
static java.lang.String |
FILE_ID_JSON |
|
static java.lang.String |
FILE_STATUS_JSON |
|
static java.lang.String |
FILE_STATUSES_JSON |
|
static java.lang.String |
FS_STATUS_JSON |
|
static java.lang.String |
FSACTION_MODE_PARAM |
|
static java.lang.String |
GROUP_JSON |
|
static java.lang.String |
GROUP_PARAM |
|
static java.lang.String |
HOME_DIR_JSON |
|
static int |
HTTP_TEMPORARY_REDIRECT |
|
static java.lang.String |
IS_TABLE |
|
static java.lang.String |
LENGTH_JSON |
|
static java.lang.String |
LENGTH_PARAM |
|
static java.lang.String |
MKDIRS_JSON |
|
static java.lang.String |
MODIFICATION_TIME_JSON |
|
static java.lang.String |
MODIFICATION_TIME_PARAM |
|
static java.lang.String |
NEW_LENGTH_PARAM |
|
static java.lang.String |
OFFSET_PARAM |
|
static java.lang.String |
OLD_SNAPSHOT_NAME_PARAM |
|
static java.lang.String |
OP_PARAM |
|
static java.lang.String |
OVERWRITE_PARAM |
|
static java.lang.String |
OWNER_JSON |
|
static java.lang.String |
OWNER_PARAM |
|
static java.lang.String |
PARTIAL_LISTING_JSON |
|
static java.lang.String |
PATH_SUFFIX_JSON |
|
static java.lang.String |
PERMISSION_JSON |
|
static java.lang.String |
PERMISSION_PARAM |
|
static java.lang.String |
PLAIN_TEXT_CONTENT_TYPE |
|
static java.lang.String |
POLICY_NAME_PARAM |
|
static java.lang.String |
QUOTA_USAGE_CONSUMED_JSON |
|
static java.lang.String |
QUOTA_USAGE_FILE_AND_DIRECTORY_COUNT_JSON |
|
static java.lang.String |
QUOTA_USAGE_JSON |
|
static java.lang.String |
QUOTA_USAGE_QUOTA_JSON |
|
static java.lang.String |
QUOTA_USAGE_SPACE_CONSUMED_JSON |
|
static java.lang.String |
QUOTA_USAGE_SPACE_QUOTA_JSON |
|
static java.lang.String |
QUOTA_USAGE_TYPE_QUOTA_JSON |
|
static java.lang.String |
RECURSIVE_PARAM |
|
static java.lang.String |
REMAINING_ENTRIES_JSON |
|
static java.lang.String |
REMAINING_JSON |
|
static java.lang.String |
RENAME_JSON |
|
static java.lang.String |
REPLICATION_JSON |
|
static java.lang.String |
REPLICATION_PARAM |
|
static java.lang.String |
SCHEME |
|
static java.lang.String |
SERVICE_NAME |
|
static java.lang.String |
SERVICE_VERSION |
|
static java.lang.String |
SET_REPLICATION_JSON |
|
static java.lang.String |
SNAPSHOT_BIT_JSON |
|
static java.lang.String |
SNAPSHOT_DIFF_INDEX |
|
static java.lang.String |
SNAPSHOT_DIFF_START_PATH |
|
static java.lang.String |
SNAPSHOT_JSON |
|
static java.lang.String |
SNAPSHOT_NAME_PARAM |
|
static java.lang.String |
SOURCES_PARAM |
|
static java.lang.String |
START_AFTER_PARAM |
|
static java.lang.String |
STORAGE_POLICIES_JSON |
|
static java.lang.String |
STORAGE_POLICY_JSON |
|
static java.lang.String |
STORAGEPOLICY_JSON |
|
static java.lang.String |
SYMLINK_JSON |
|
static java.lang.String |
TRASH_DIR_JSON |
|
static java.lang.String |
TRUNCATE_JSON |
|
static java.lang.String |
TYPE_JSON |
|
static java.lang.String |
UNMASKED_PERMISSION_PARAM |
|
static java.lang.String |
UPLOAD_CONTENT_TYPE |
|
static java.lang.String |
USED_JSON |
|
static java.lang.String |
XATTR_ENCODING_PARAM |
|
static java.lang.String |
XATTR_NAME_JSON |
|
static java.lang.String |
XATTR_NAME_PARAM |
|
static java.lang.String |
XATTR_SET_FLAG_PARAM |
|
static java.lang.String |
XATTR_VALUE_JSON |
|
static java.lang.String |
XATTR_VALUE_PARAM |
|
static java.lang.String |
XATTRNAMES_JSON |
|
static java.lang.String |
XATTRS_JSON |
| Constructor | Description |
|---|---|
HttpFSFileSystem() |
| Modifier and Type | Method | 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,
java.lang.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,
java.lang.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
|
java.util.Map<java.lang.String,java.lang.String> |
getAllErasureCodingCodecs() |
|
java.util.Collection<org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyInfo> |
getAllErasureCodingPolicies() |
|
java.util.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(java.lang.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() |
|
java.lang.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,
java.lang.String snapshotOldName,
java.lang.String snapshotNewName) |
|
org.apache.hadoop.hdfs.protocol.SnapshotDiffReportListing |
getSnapshotDiffReportListing(org.apache.hadoop.fs.Path path,
java.lang.String snapshotOldName,
java.lang.String snapshotNewName,
byte[] snapshotDiffStartPath,
java.lang.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.
|
java.util.Collection<org.apache.hadoop.fs.FileStatus> |
getTrashRoots(boolean allUsers) |
|
java.net.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,
java.lang.String name) |
|
java.util.Map<java.lang.String,byte[]> |
getXAttrs(org.apache.hadoop.fs.Path f) |
|
java.util.Map<java.lang.String,byte[]> |
getXAttrs(org.apache.hadoop.fs.Path f,
java.util.List<java.lang.String> names) |
|
boolean |
hasPathCapability(org.apache.hadoop.fs.Path path,
java.lang.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(java.net.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
FileSystem.DirectoryEntries of the given path. |
java.util.List<java.lang.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,
java.util.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 java.lang.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,
java.util.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,
java.lang.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,
java.lang.String snapshotOldName,
java.lang.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,
java.util.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,
java.lang.String policyName) |
|
void |
setOwner(org.apache.hadoop.fs.Path p,
java.lang.String username,
java.lang.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,
java.lang.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,
java.lang.String name,
byte[] value,
java.util.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, createFid, createFile, createMultipartUploader, createNewFile, createNonRecursive, createNonRecursive, createNonRecursive, createPathHandle, createPathId, createSnapshot, createSymlink, deleteFid, deleteOnExit, enableSymlinks, exists, fixRelativePart, get, get, get, getAdditionalTokenIssuers, getAllStatistics, getBlockSize, getCanonicalServiceName, getCanonicalUri, getChildFileSystems, getDefaultBlockSize, getDefaultBlockSize, getDefaultReplication, getDefaultReplication, getDefaultUri, getEnclosingRoot, getFileChecksum, getFileSystemClass, getFSofPath, getGlobalStorageStatistics, getInitialWorkingDirectory, getJobTrackerAddrs, getLength, getLinkTarget, getLocal, getName, getNamed, getPathHandle, getReplication, getStatistics, getStatistics, getStatus, getStorageStatistics, getUsed, getUsed, getZkConnectString, globStatus, globStatus, isDirectory, isFile, listCorruptFileBlocks, listFiles, listLocatedStatus, listLocatedStatus, listStatus, listStatus, listStatus, listStatusIterator, makeQualified, mkdirs, mkdirs, mkdirsFid, mkdirsFid, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, msync, newInstance, newInstance, newInstance, newInstanceLocal, open, open, open, openFid, openFid, openFid2, openFile, openFile, openFileWithOptions, openFileWithOptions, primitiveCreate, primitiveMkdir, primitiveMkdir, printStatistics, processDeleteOnExit, rename, resolveLink, resolvePath, setDefaultUri, setDefaultUri, setOwnerFid, setQuota, setQuotaByStorageType, setVerifyChecksum, setWriteChecksum, setXAttr, startLocalOutput, supportsSymlinkspublic static final java.lang.String SERVICE_NAME
public static final java.lang.String SERVICE_VERSION
public static final java.lang.String SCHEME
public static final java.lang.String OP_PARAM
public static final java.lang.String DO_AS_PARAM
public static final java.lang.String OVERWRITE_PARAM
public static final java.lang.String REPLICATION_PARAM
public static final java.lang.String BLOCKSIZE_PARAM
public static final java.lang.String PERMISSION_PARAM
public static final java.lang.String UNMASKED_PERMISSION_PARAM
public static final java.lang.String ACLSPEC_PARAM
public static final java.lang.String DESTINATION_PARAM
public static final java.lang.String RECURSIVE_PARAM
public static final java.lang.String SOURCES_PARAM
public static final java.lang.String OWNER_PARAM
public static final java.lang.String GROUP_PARAM
public static final java.lang.String MODIFICATION_TIME_PARAM
public static final java.lang.String ACCESS_TIME_PARAM
public static final java.lang.String XATTR_NAME_PARAM
public static final java.lang.String XATTR_VALUE_PARAM
public static final java.lang.String XATTR_SET_FLAG_PARAM
public static final java.lang.String XATTR_ENCODING_PARAM
public static final java.lang.String NEW_LENGTH_PARAM
public static final java.lang.String START_AFTER_PARAM
public static final java.lang.String POLICY_NAME_PARAM
public static final java.lang.String SNAPSHOT_NAME_PARAM
public static final java.lang.String OLD_SNAPSHOT_NAME_PARAM
public static final java.lang.String SNAPSHOT_DIFF_START_PATH
public static final java.lang.String SNAPSHOT_DIFF_INDEX
public static final java.lang.String FSACTION_MODE_PARAM
public static final java.lang.String EC_POLICY_NAME_PARAM
public static final java.lang.String OFFSET_PARAM
public static final java.lang.String LENGTH_PARAM
public static final java.lang.String ALLUSERS_PARAM
public static final java.lang.Short DEFAULT_PERMISSION
public static final java.lang.String ACLSPEC_DEFAULT
public static final java.lang.String RENAME_JSON
public static final java.lang.String TRUNCATE_JSON
public static final java.lang.String DELETE_JSON
public static final java.lang.String MKDIRS_JSON
public static final java.lang.String HOME_DIR_JSON
public static final java.lang.String TRASH_DIR_JSON
public static final java.lang.String SET_REPLICATION_JSON
public static final java.lang.String UPLOAD_CONTENT_TYPE
public static final java.lang.String PLAIN_TEXT_CONTENT_TYPE
public static final java.lang.String SNAPSHOT_JSON
public static final java.lang.String FILE_STATUSES_JSON
public static final java.lang.String FILE_STATUS_JSON
public static final java.lang.String FS_STATUS_JSON
public static final java.lang.String PATH_SUFFIX_JSON
public static final java.lang.String TYPE_JSON
public static final java.lang.String LENGTH_JSON
public static final java.lang.String OWNER_JSON
public static final java.lang.String GROUP_JSON
public static final java.lang.String PERMISSION_JSON
public static final java.lang.String ACCESS_TIME_JSON
public static final java.lang.String MODIFICATION_TIME_JSON
public static final java.lang.String BLOCK_SIZE_JSON
public static final java.lang.String CHILDREN_NUM_JSON
public static final java.lang.String FILE_ID_JSON
public static final java.lang.String REPLICATION_JSON
public static final java.lang.String STORAGEPOLICY_JSON
public static final java.lang.String ECPOLICYNAME_JSON
public static final java.lang.String XATTRS_JSON
public static final java.lang.String XATTR_NAME_JSON
public static final java.lang.String XATTR_VALUE_JSON
public static final java.lang.String XATTRNAMES_JSON
public static final java.lang.String ECPOLICY_JSON
public static final java.lang.String SYMLINK_JSON
public static final java.lang.String CAPACITY_JSON
public static final java.lang.String USED_JSON
public static final java.lang.String REMAINING_JSON
public static final java.lang.String IS_TABLE
public static final java.lang.String FILE_CHECKSUM_JSON
public static final java.lang.String CHECKSUM_ALGORITHM_JSON
public static final java.lang.String CHECKSUM_BYTES_JSON
public static final java.lang.String CHECKSUM_LENGTH_JSON
public static final java.lang.String CONTENT_SUMMARY_JSON
public static final java.lang.String CONTENT_SUMMARY_DIRECTORY_COUNT_JSON
public static final java.lang.String CONTENT_SUMMARY_ECPOLICY_JSON
public static final java.lang.String CONTENT_SUMMARY_FILE_COUNT_JSON
public static final java.lang.String CONTENT_SUMMARY_LENGTH_JSON
public static final java.lang.String QUOTA_USAGE_JSON
public static final java.lang.String QUOTA_USAGE_FILE_AND_DIRECTORY_COUNT_JSON
public static final java.lang.String QUOTA_USAGE_QUOTA_JSON
public static final java.lang.String QUOTA_USAGE_SPACE_CONSUMED_JSON
public static final java.lang.String QUOTA_USAGE_SPACE_QUOTA_JSON
public static final java.lang.String QUOTA_USAGE_CONSUMED_JSON
public static final java.lang.String QUOTA_USAGE_TYPE_QUOTA_JSON
public static final java.lang.String ACL_STATUS_JSON
public static final java.lang.String ACL_STICKY_BIT_JSON
public static final java.lang.String ACL_ENTRIES_JSON
public static final java.lang.String ACL_BIT_JSON
public static final java.lang.String ENC_BIT_JSON
public static final java.lang.String EC_BIT_JSON
public static final java.lang.String SNAPSHOT_BIT_JSON
public static final java.lang.String DIRECTORY_LISTING_JSON
public static final java.lang.String PARTIAL_LISTING_JSON
public static final java.lang.String REMAINING_ENTRIES_JSON
public static final java.lang.String STORAGE_POLICIES_JSON
public static final java.lang.String STORAGE_POLICY_JSON
public static final java.lang.String BLOCK_LOCATIONS_JSON
public static final int HTTP_TEMPORARY_REDIRECT
public void initialize(java.net.URI name,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
initialize in class org.apache.hadoop.fs.FileSystemname - a uri whose authority section names the host, port, etc. for this FileSystemconf - the configurationjava.io.IOExceptionpublic java.lang.String getScheme()
getScheme in class org.apache.hadoop.fs.FileSystempublic java.net.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 java.io.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.java.io.IOExceptionpublic static java.lang.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 java.io.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.java.io.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 java.io.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.java.io.IOExceptionpublic boolean truncate(org.apache.hadoop.fs.Path f,
long newLength)
throws java.io.IOException
truncate in class org.apache.hadoop.fs.FileSystemf - the file to be truncated.newLength - The size the file is to be truncated to.java.io.IOExceptionpublic void concat(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.Path[] psrcs)
throws java.io.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.java.io.IOExceptionpublic boolean rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws java.io.IOException
rename in class org.apache.hadoop.fs.FileSystemjava.io.IOException@Deprecated
public boolean delete(org.apache.hadoop.fs.Path f)
throws java.io.IOException
delete in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic boolean delete(org.apache.hadoop.fs.Path f,
boolean recursive)
throws java.io.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.java.io.IOExceptionpublic org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path f)
throws java.io.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 pathjava.io.IOExceptionpublic org.apache.hadoop.fs.FileSystem.DirectoryEntries listStatusBatch(org.apache.hadoop.fs.Path f,
byte[] token)
throws java.io.FileNotFoundException,
java.io.IOException
FileSystem.DirectoryEntries of the given path. FileSystem.DirectoryEntries
contains an array of FileStatus, as well as iteration information.listStatusBatch in class org.apache.hadoop.fs.FileSystemf - given pathFileSystem.DirectoryEntries for given pathjava.io.FileNotFoundExceptionjava.io.IOExceptionpublic 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 java.io.IOException
mkdirs in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic org.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path f)
throws java.io.IOException
getFileStatus in class org.apache.hadoop.fs.FileSystemf - The path we want information fromjava.io.FileNotFoundException - when the path does not exist;
IOException see specific implementationjava.io.IOExceptionpublic 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,
java.lang.String username,
java.lang.String groupname)
throws java.io.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.java.io.IOExceptionpublic void setPermission(org.apache.hadoop.fs.Path p,
org.apache.hadoop.fs.permission.FsPermission permission)
throws java.io.IOException
setPermission in class org.apache.hadoop.fs.FileSystemp - path.permission - permission.java.io.IOExceptionpublic void setTimes(org.apache.hadoop.fs.Path p,
long mtime,
long atime)
throws java.io.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.java.io.IOExceptionpublic boolean setReplication(org.apache.hadoop.fs.Path src,
short replication)
throws java.io.IOException
setReplication in class org.apache.hadoop.fs.FileSystemsrc - file namereplication - new replicationjava.io.IOExceptionpublic void modifyAclEntries(org.apache.hadoop.fs.Path path,
java.util.List<org.apache.hadoop.fs.permission.AclEntry> aclSpec)
throws java.io.IOException
modifyAclEntries in class org.apache.hadoop.fs.FileSystempath - Path to modifyaclSpec - describing modificationsjava.io.IOExceptionpublic void removeAclEntries(org.apache.hadoop.fs.Path path,
java.util.List<org.apache.hadoop.fs.permission.AclEntry> aclSpec)
throws java.io.IOException
removeAclEntries in class org.apache.hadoop.fs.FileSystempath - Path to modifyaclSpec - describing entries to removejava.io.IOExceptionpublic void removeDefaultAcl(org.apache.hadoop.fs.Path path)
throws java.io.IOException
removeDefaultAcl in class org.apache.hadoop.fs.FileSystempath - Path from which to remove the default ACL.java.io.IOExceptionpublic void removeAcl(org.apache.hadoop.fs.Path path)
throws java.io.IOException
removeAcl in class org.apache.hadoop.fs.FileSystempath - Path from which to remove all ACLsjava.io.IOExceptionpublic void setAcl(org.apache.hadoop.fs.Path path,
java.util.List<org.apache.hadoop.fs.permission.AclEntry> aclSpec)
throws java.io.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.java.io.IOExceptionpublic org.apache.hadoop.fs.permission.AclStatus getAclStatus(org.apache.hadoop.fs.Path path)
throws java.io.IOException
getAclStatus in class org.apache.hadoop.fs.FileSystempath - Path to acquire ACL info forjava.io.IOExceptionpublic org.apache.hadoop.fs.ContentSummary getContentSummary(org.apache.hadoop.fs.Path f)
throws java.io.IOException
getContentSummary in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic org.apache.hadoop.fs.QuotaUsage getQuotaUsage(org.apache.hadoop.fs.Path f)
throws java.io.IOException
getQuotaUsage in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic org.apache.hadoop.fs.FileChecksum getFileChecksum(org.apache.hadoop.fs.Path f)
throws java.io.IOException
getFileChecksum in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic org.apache.hadoop.security.token.Token<?> getDelegationToken(java.lang.String renewer)
throws java.io.IOException
getDelegationToken in interface org.apache.hadoop.security.token.DelegationTokenIssuergetDelegationToken in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic long renewDelegationToken(org.apache.hadoop.security.token.Token<?> token)
throws java.io.IOException
java.io.IOExceptionpublic void cancelDelegationToken(org.apache.hadoop.security.token.Token<?> token)
throws java.io.IOException
java.io.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,
java.lang.String name,
byte[] value,
java.util.EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag)
throws java.io.IOException
setXAttr in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic byte[] getXAttr(org.apache.hadoop.fs.Path f,
java.lang.String name)
throws java.io.IOException
getXAttr in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic java.util.Map<java.lang.String,byte[]> getXAttrs(org.apache.hadoop.fs.Path f)
throws java.io.IOException
getXAttrs in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic java.util.Map<java.lang.String,byte[]> getXAttrs(org.apache.hadoop.fs.Path f,
java.util.List<java.lang.String> names)
throws java.io.IOException
getXAttrs in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic java.util.List<java.lang.String> listXAttrs(org.apache.hadoop.fs.Path f)
throws java.io.IOException
listXAttrs in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic void removeXAttr(org.apache.hadoop.fs.Path f,
java.lang.String name)
throws java.io.IOException
removeXAttr in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic java.util.Collection<org.apache.hadoop.hdfs.protocol.BlockStoragePolicy> getAllStoragePolicies()
throws java.io.IOException
getAllStoragePolicies in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic org.apache.hadoop.hdfs.protocol.BlockStoragePolicy getStoragePolicy(org.apache.hadoop.fs.Path src)
throws java.io.IOException
getStoragePolicy in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic void setStoragePolicy(org.apache.hadoop.fs.Path src,
java.lang.String policyName)
throws java.io.IOException
setStoragePolicy in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic void unsetStoragePolicy(org.apache.hadoop.fs.Path src)
throws java.io.IOException
unsetStoragePolicy in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic void allowSnapshot(org.apache.hadoop.fs.Path path)
throws java.io.IOException
java.io.IOExceptionpublic void disallowSnapshot(org.apache.hadoop.fs.Path path)
throws java.io.IOException
java.io.IOExceptionpublic final org.apache.hadoop.fs.Path createSnapshot(org.apache.hadoop.fs.Path path,
java.lang.String snapshotName)
throws java.io.IOException
createSnapshot in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic void renameSnapshot(org.apache.hadoop.fs.Path path,
java.lang.String snapshotOldName,
java.lang.String snapshotNewName)
throws java.io.IOException
renameSnapshot in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic void deleteSnapshot(org.apache.hadoop.fs.Path path,
java.lang.String snapshotName)
throws java.io.IOException
deleteSnapshot in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic org.apache.hadoop.hdfs.protocol.SnapshotDiffReport getSnapshotDiffReport(org.apache.hadoop.fs.Path path,
java.lang.String snapshotOldName,
java.lang.String snapshotNewName)
throws java.io.IOException
java.io.IOExceptionpublic org.apache.hadoop.hdfs.protocol.SnapshotDiffReportListing getSnapshotDiffReportListing(org.apache.hadoop.fs.Path path,
java.lang.String snapshotOldName,
java.lang.String snapshotNewName,
byte[] snapshotDiffStartPath,
java.lang.Integer snapshotDiffIndex)
throws java.io.IOException
java.io.IOExceptionpublic org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus[] getSnapshottableDirectoryList()
throws java.io.IOException
java.io.IOExceptionpublic org.apache.hadoop.hdfs.protocol.SnapshotStatus[] getSnapshotListing(org.apache.hadoop.fs.Path snapshotRoot)
throws java.io.IOException
java.io.IOExceptionpublic boolean hasPathCapability(org.apache.hadoop.fs.Path path,
java.lang.String capability)
throws java.io.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.FileSystemjava.io.IOExceptionpublic org.apache.hadoop.fs.FsServerDefaults getServerDefaults()
throws java.io.IOException
getServerDefaults in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic org.apache.hadoop.fs.FsServerDefaults getServerDefaults(org.apache.hadoop.fs.Path p)
throws java.io.IOException
getServerDefaults in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic void access(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.permission.FsAction mode)
throws java.io.IOException
access in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic void setErasureCodingPolicy(org.apache.hadoop.fs.Path path,
java.lang.String policyName)
throws java.io.IOException
java.io.IOExceptionpublic org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy getErasureCodingPolicy(org.apache.hadoop.fs.Path path)
throws java.io.IOException
java.io.IOExceptionpublic void unsetErasureCodingPolicy(org.apache.hadoop.fs.Path path)
throws java.io.IOException
java.io.IOExceptionpublic void satisfyStoragePolicy(org.apache.hadoop.fs.Path path)
throws java.io.IOException
satisfyStoragePolicy in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.Path path,
long start,
long len)
throws java.io.IOException
getFileBlockLocations in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.FileStatus status,
long offset,
long length)
throws java.io.IOException
getFileBlockLocations in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic org.apache.hadoop.fs.FileStatus getFileLinkStatus(org.apache.hadoop.fs.Path path)
throws java.io.IOException
getFileLinkStatus in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic org.apache.hadoop.fs.FsStatus getStatus(org.apache.hadoop.fs.Path path)
throws java.io.IOException
getStatus in class org.apache.hadoop.fs.FileSystemjava.io.IOExceptionpublic java.util.Collection<org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyInfo> getAllErasureCodingPolicies()
throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,java.lang.String> getAllErasureCodingCodecs()
throws java.io.IOException
java.io.IOExceptionpublic java.util.Collection<org.apache.hadoop.fs.FileStatus> getTrashRoots(boolean allUsers)
getTrashRoots in class org.apache.hadoop.fs.FileSystemCopyright © 2008–2025 Apache Software Foundation. All rights reserved.