Package org.apache.hadoop.hdfs.web
Class WebHdfsFileSystem
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.fs.FileSystem
org.apache.hadoop.hdfs.web.WebHdfsFileSystem
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.conf.Configurable,org.apache.hadoop.crypto.key.KeyProviderTokenIssuer,org.apache.hadoop.fs.BulkDeleteSource,org.apache.hadoop.fs.DelegationTokenRenewer.Renewable,org.apache.hadoop.fs.PathCapabilities,org.apache.hadoop.security.token.DelegationTokenIssuer
- Direct Known Subclasses:
SWebHdfsFileSystem
public class WebHdfsFileSystem
extends org.apache.hadoop.fs.FileSystem
implements org.apache.hadoop.fs.DelegationTokenRenewer.Renewable, org.apache.hadoop.crypto.key.KeyProviderTokenIssuer
A FileSystem for HDFS over the web.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classThis class will allow retries to occur for both open and read operations.classThis class is used for opening, reading, and seeking files while using the WebHdfsFileSystem.Nested classes/interfaces inherited from class org.apache.hadoop.fs.FileSystem
org.apache.hadoop.fs.FileSystem.DirectoryEntries, org.apache.hadoop.fs.FileSystem.DirListingIterator<T extends org.apache.hadoop.fs.FileStatus>, org.apache.hadoop.fs.FileSystem.Statistics -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected URLConnectionFactoryDefault connection factory may be overridden in tests to use smaller timeout valuesstatic final Stringstatic final Stringstatic final Stringstatic final org.slf4j.Loggerstatic final StringHttp URI: http://namenode:port/{PATH_PREFIX}/path/to/fileprotected org.apache.hadoop.io.Textstatic final intWebHdfs version.Fields inherited from class org.apache.hadoop.fs.FileSystem
DEFAULT_FS, FS_DEFAULT_NAME_KEY, SHUTDOWN_HOOK_PRIORITY, statistics, TRASH_PREFIX, USER_HOME_PREFIXFields inherited from interface org.apache.hadoop.security.token.DelegationTokenIssuer
TOKEN_LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccess(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.permission.FsAction mode) voidallowSnapshot(org.apache.hadoop.fs.Path p) org.apache.hadoop.fs.FSDataOutputStreamappend(org.apache.hadoop.fs.Path f, int bufferSize, org.apache.hadoop.util.Progressable progress) voidcancelDelegationToken(org.apache.hadoop.security.token.Token<?> token) protected URIcanonicalizeUri(URI uri) voidclose()voidconcat(org.apache.hadoop.fs.Path trg, org.apache.hadoop.fs.Path[] srcs) org.apache.hadoop.fs.FSDataOutputStreamcreate(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.MultipartUploaderBuildercreateMultipartUploader(org.apache.hadoop.fs.Path basePath) org.apache.hadoop.fs.FSDataOutputStreamcreateNonRecursive(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission, EnumSet<org.apache.hadoop.fs.CreateFlag> flag, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress) org.apache.hadoop.fs.PathcreateSnapshot(org.apache.hadoop.fs.Path path, String snapshotName) voidcreateSymlink(org.apache.hadoop.fs.Path destination, org.apache.hadoop.fs.Path f, boolean createParent) Create a symlink pointing to the destination path.booleandelete(org.apache.hadoop.fs.Path f, boolean recursive) voiddeleteSnapshot(org.apache.hadoop.fs.Path path, String snapshotName) voiddisableECPolicy(String policyName) voiddisallowSnapshot(org.apache.hadoop.fs.Path p) voidenableECPolicy(String policyName) org.apache.hadoop.fs.permission.AclStatusgetAclStatus(org.apache.hadoop.fs.Path f) org.apache.hadoop.security.token.DelegationTokenIssuer[]org.apache.hadoop.fs.ContentSummarygetContentSummary(org.apache.hadoop.fs.Path p) longprotected intshortprotected org.apache.hadoop.security.token.Token<?>org.apache.hadoop.security.token.Token<DelegationTokenIdentifier>getDelegationToken(String renewer) getErasureCodingPolicy(org.apache.hadoop.fs.Path p) 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 p, long offset, long length) org.apache.hadoop.fs.MD5MD5CRC32FileChecksumgetFileChecksum(org.apache.hadoop.fs.Path p) org.apache.hadoop.fs.FileStatusgetFileLinkStatus(org.apache.hadoop.fs.Path f) org.apache.hadoop.fs.FileStatusgetFileStatus(org.apache.hadoop.fs.Path f) org.apache.hadoop.fs.Pathstatic StringgetHomeDirectoryString(org.apache.hadoop.security.UserGroupInformation ugi) Deprecated.org.apache.hadoop.crypto.key.KeyProviderorg.apache.hadoop.fs.PathgetLinkTarget(org.apache.hadoop.fs.Path f) org.apache.hadoop.fs.QuotaUsagegetQuotaUsage(org.apache.hadoop.fs.Path p) org.apache.hadoop.security.token.Token<?>Return the protocol scheme for the FileSystem.org.apache.hadoop.fs.FsServerDefaultsgetSnapshotDiffReport(org.apache.hadoop.fs.Path snapshotDir, String fromSnapshot, String toSnapshot) getSnapshotDiffReportListing(String snapshotDir, String fromSnapshot, String toSnapshot, byte[] startPath, int index) getSnapshotListing(org.apache.hadoop.fs.Path snapshotDir) org.apache.hadoop.fs.FsStatusgetStatus(org.apache.hadoop.fs.Path path) getStoragePolicy(org.apache.hadoop.fs.Path src) protected org.apache.hadoop.io.Textprotected Stringreturn the underlying transport protocol (http / https).org.apache.hadoop.fs.PathgetTrashRoot(org.apache.hadoop.fs.Path path) Collection<org.apache.hadoop.fs.FileStatus>getTrashRoots(boolean allUsers) getUri()org.apache.hadoop.fs.Pathbyte[]getXAttrs(org.apache.hadoop.fs.Path p) booleanhasPathCapability(org.apache.hadoop.fs.Path path, String capability) HDFS client capabilities.voidinitialize(URI uri, org.apache.hadoop.conf.Configuration conf) static Map<?,?> jsonParse(HttpURLConnection c, boolean useErrorStream) org.apache.hadoop.fs.FileStatus[]listStatus(org.apache.hadoop.fs.Path f) GetFileStatusof files/directories in the given path.org.apache.hadoop.fs.FileSystem.DirectoryEntrieslistStatusBatch(org.apache.hadoop.fs.Path f, byte[] token) Get DirectoryEntries of the given path.listXAttrs(org.apache.hadoop.fs.Path p) booleanmkdirs(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission) voidmodifyAclEntries(org.apache.hadoop.fs.Path path, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) org.apache.hadoop.fs.FSDataInputStreamopen(org.apache.hadoop.fs.Path f, int bufferSize) voidremoveAcl(org.apache.hadoop.fs.Path path) voidremoveAclEntries(org.apache.hadoop.fs.Path path, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) voidremoveDefaultAcl(org.apache.hadoop.fs.Path path) voidremoveXAttr(org.apache.hadoop.fs.Path p, String name) booleanrename(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) voidrename(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst, org.apache.hadoop.fs.Options.Rename... options) voidrenameSnapshot(org.apache.hadoop.fs.Path path, String snapshotOldName, String snapshotNewName) longrenewDelegationToken(org.apache.hadoop.security.token.Token<?> token) voidsatisfyStoragePolicy(org.apache.hadoop.fs.Path p) void<T extends org.apache.hadoop.security.token.TokenIdentifier>
voidsetDelegationToken(org.apache.hadoop.security.token.Token<T> token) voidsetErasureCodingPolicy(org.apache.hadoop.fs.Path p, String policyName) voidvoidsetPermission(org.apache.hadoop.fs.Path p, org.apache.hadoop.fs.permission.FsPermission permission) voidsetQuota(org.apache.hadoop.fs.Path p, long namespaceQuota, long storagespaceQuota) voidsetQuotaByStorageType(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.StorageType type, long quota) booleansetReplication(org.apache.hadoop.fs.Path p, short replication) voidsetRetryPolicy(org.apache.hadoop.io.retry.RetryPolicy rp) voidsetStoragePolicy(org.apache.hadoop.fs.Path p, String policyName) voidsetTestProvider(org.apache.hadoop.crypto.key.KeyProvider kp) voidsetTimes(org.apache.hadoop.fs.Path p, long mtime, long atime) voidsetWorkingDirectory(org.apache.hadoop.fs.Path dir) voidsetXAttr(org.apache.hadoop.fs.Path p, String name, byte[] value, EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag) booleanbooleantruncate(org.apache.hadoop.fs.Path f, long newLength) voidunsetErasureCodingPolicy(org.apache.hadoop.fs.Path p) voidunsetStoragePolicy(org.apache.hadoop.fs.Path src) Methods inherited from class org.apache.hadoop.fs.FileSystem
append, append, append, append, appendFile, areSymlinksEnabled, cancelDeleteOnExit, checkPath, clearStatistics, 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, createNewFile, createNonRecursive, createNonRecursive, createPathHandle, createSnapshot, delete, deleteOnExit, enableSymlinks, exists, fixRelativePart, get, get, get, getAllStatistics, getBlockSize, getChildFileSystems, getDefaultBlockSize, getDefaultReplication, getDefaultUri, getEnclosingRoot, getFileChecksum, getFileSystemClass, getFSofPath, getGlobalStorageStatistics, getInitialWorkingDirectory, getLength, getLocal, getName, getNamed, getPathHandle, getReplication, getServerDefaults, 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, resolveLink, resolvePath, setDefaultUri, setDefaultUri, setVerifyChecksum, setWriteChecksum, setXAttr, startLocalOutputMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.security.token.DelegationTokenIssuer
addDelegationTokens
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
VERSION
public static final int VERSIONWebHdfs version.- See Also:
-
PATH_PREFIX
Http URI: http://namenode:port/{PATH_PREFIX}/path/to/file- See Also:
-
EZ_HEADER
- See Also:
-
FEFINFO_HEADER
- See Also:
-
DFS_HTTP_POLICY_KEY
- See Also:
-
connectionFactory
Default connection factory may be overridden in tests to use smaller timeout values -
CANT_FALLBACK_TO_INSECURE_MSG
- See Also:
-
tokenServiceName
protected org.apache.hadoop.io.Text tokenServiceName
-
-
Constructor Details
-
WebHdfsFileSystem
public WebHdfsFileSystem()
-
-
Method Details
-
getScheme
Return the protocol scheme for the FileSystem.- Overrides:
getSchemein classorg.apache.hadoop.fs.FileSystem- Returns:
webhdfs
-
getTransportScheme
return the underlying transport protocol (http / https). -
getTokenKind
protected org.apache.hadoop.io.Text getTokenKind() -
initialize
- Overrides:
initializein classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getCanonicalUri
- Overrides:
getCanonicalUriin classorg.apache.hadoop.fs.FileSystem
-
getDelegationToken
- Throws:
IOException
-
getDefaultPort
protected int getDefaultPort()- Overrides:
getDefaultPortin classorg.apache.hadoop.fs.FileSystem
-
getUri
- Specified by:
getUriin classorg.apache.hadoop.fs.FileSystem
-
canonicalizeUri
- Overrides:
canonicalizeUriin classorg.apache.hadoop.fs.FileSystem
-
getHomeDirectoryString
@Deprecated public static String getHomeDirectoryString(org.apache.hadoop.security.UserGroupInformation ugi) Deprecated.- Returns:
- the home directory
-
getHomeDirectory
public org.apache.hadoop.fs.Path getHomeDirectory()- Overrides:
getHomeDirectoryin classorg.apache.hadoop.fs.FileSystem
-
getWorkingDirectory
public org.apache.hadoop.fs.Path getWorkingDirectory()- Specified by:
getWorkingDirectoryin classorg.apache.hadoop.fs.FileSystem
-
setWorkingDirectory
public void setWorkingDirectory(org.apache.hadoop.fs.Path dir) - Specified by:
setWorkingDirectoryin classorg.apache.hadoop.fs.FileSystem
-
jsonParse
@VisibleForTesting public static Map<?,?> jsonParse(HttpURLConnection c, boolean useErrorStream) throws IOException - Throws:
IOException
-
getFileStatus
public org.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path f) throws IOException - Specified by:
getFileStatusin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getAclStatus
public org.apache.hadoop.fs.permission.AclStatus getAclStatus(org.apache.hadoop.fs.Path f) throws IOException - Overrides:
getAclStatusin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
mkdirs
public boolean mkdirs(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission) throws IOException - Specified by:
mkdirsin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
supportsSymlinks
public boolean supportsSymlinks()- Overrides:
supportsSymlinksin classorg.apache.hadoop.fs.FileSystem
-
createSymlink
public void createSymlink(org.apache.hadoop.fs.Path destination, org.apache.hadoop.fs.Path f, boolean createParent) throws IOException Create a symlink pointing to the destination path.- Overrides:
createSymlinkin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
rename
public boolean rename(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws IOException - Specified by:
renamein classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
rename
public void rename(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst, org.apache.hadoop.fs.Options.Rename... options) throws IOException - Overrides:
renamein classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
setXAttr
public void setXAttr(org.apache.hadoop.fs.Path p, String name, byte[] value, EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag) throws IOException - Overrides:
setXAttrin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getXAttr
- Overrides:
getXAttrin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getXAttrs
- Overrides:
getXAttrsin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getXAttrs
public Map<String,byte[]> getXAttrs(org.apache.hadoop.fs.Path p, List<String> names) throws IOException - Overrides:
getXAttrsin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
listXAttrs
- Overrides:
listXAttrsin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
removeXAttr
- Overrides:
removeXAttrin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
setOwner
- Overrides:
setOwnerin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
setPermission
public void setPermission(org.apache.hadoop.fs.Path p, org.apache.hadoop.fs.permission.FsPermission permission) throws IOException - Overrides:
setPermissionin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
modifyAclEntries
public void modifyAclEntries(org.apache.hadoop.fs.Path path, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) throws IOException - Overrides:
modifyAclEntriesin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
removeAclEntries
public void removeAclEntries(org.apache.hadoop.fs.Path path, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) throws IOException - Overrides:
removeAclEntriesin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
removeDefaultAcl
- Overrides:
removeDefaultAclin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
removeAcl
- Overrides:
removeAclin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
setAcl
public void setAcl(org.apache.hadoop.fs.Path p, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) throws IOException - Overrides:
setAclin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
allowSnapshot
- Throws:
IOException
-
satisfyStoragePolicy
- Overrides:
satisfyStoragePolicyin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
enableECPolicy
- Throws:
IOException
-
disableECPolicy
- Throws:
IOException
-
setErasureCodingPolicy
public void setErasureCodingPolicy(org.apache.hadoop.fs.Path p, String policyName) throws IOException - Throws:
IOException
-
unsetErasureCodingPolicy
- Throws:
IOException
-
getErasureCodingPolicy
- Throws:
IOException
-
createSnapshot
public org.apache.hadoop.fs.Path createSnapshot(org.apache.hadoop.fs.Path path, String snapshotName) throws IOException - Overrides:
createSnapshotin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
disallowSnapshot
- Throws:
IOException
-
deleteSnapshot
- Overrides:
deleteSnapshotin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
renameSnapshot
public void renameSnapshot(org.apache.hadoop.fs.Path path, String snapshotOldName, String snapshotNewName) throws IOException - Overrides:
renameSnapshotin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getSnapshotDiffReportListing
@VisibleForTesting public SnapshotDiffReportListing getSnapshotDiffReportListing(String snapshotDir, String fromSnapshot, String toSnapshot, byte[] startPath, int index) throws IOException - Throws:
IOException
-
getSnapshotDiffReport
public SnapshotDiffReport getSnapshotDiffReport(org.apache.hadoop.fs.Path snapshotDir, String fromSnapshot, String toSnapshot) throws IOException - Throws:
IOException
-
getSnapshottableDirectoryList
- Throws:
IOException
-
getSnapshotListing
public SnapshotStatus[] getSnapshotListing(org.apache.hadoop.fs.Path snapshotDir) throws IOException - Throws:
IOException
-
setReplication
- Overrides:
setReplicationin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
setTimes
- Overrides:
setTimesin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getDefaultBlockSize
public long getDefaultBlockSize()- Overrides:
getDefaultBlockSizein classorg.apache.hadoop.fs.FileSystem
-
getDefaultReplication
public short getDefaultReplication()- Overrides:
getDefaultReplicationin classorg.apache.hadoop.fs.FileSystem
-
concat
public void concat(org.apache.hadoop.fs.Path trg, org.apache.hadoop.fs.Path[] srcs) throws IOException - Overrides:
concatin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
create
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 - Specified by:
createin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
createNonRecursive
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> flag, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress) throws IOException - Overrides:
createNonRecursivein classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
append
public org.apache.hadoop.fs.FSDataOutputStream append(org.apache.hadoop.fs.Path f, int bufferSize, org.apache.hadoop.util.Progressable progress) throws IOException - Specified by:
appendin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
truncate
- Overrides:
truncatein classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
delete
- Specified by:
deletein classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
open
public org.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path f, int bufferSize) throws IOException - Specified by:
openin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
listStatus
GetFileStatusof files/directories in the given path. If path corresponds to a file thenFileStatusof that file is returned. Else if path represents a directory thenFileStatusof all files/directories inside given path is returned.- Specified by:
listStatusin classorg.apache.hadoop.fs.FileSystem- Parameters:
f- given path- Returns:
- the statuses of the files/directories in the given path
- Throws:
IOException
-
listStatusBatch
public org.apache.hadoop.fs.FileSystem.DirectoryEntries listStatusBatch(org.apache.hadoop.fs.Path f, byte[] token) throws FileNotFoundException, IOException Get DirectoryEntries of the given path. DirectoryEntries contains an array ofFileStatus, as well as iteration information.- Overrides:
listStatusBatchin classorg.apache.hadoop.fs.FileSystem- Parameters:
f- given path- Returns:
- DirectoryEntries for given path
- Throws:
FileNotFoundExceptionIOException
-
getDelegationToken
public org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> getDelegationToken(String renewer) throws IOException - Specified by:
getDelegationTokenin interfaceorg.apache.hadoop.security.token.DelegationTokenIssuer- Overrides:
getDelegationTokenin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getAdditionalTokenIssuers
public org.apache.hadoop.security.token.DelegationTokenIssuer[] getAdditionalTokenIssuers() throws IOException- Specified by:
getAdditionalTokenIssuersin interfaceorg.apache.hadoop.security.token.DelegationTokenIssuer- Overrides:
getAdditionalTokenIssuersin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getRenewToken
public org.apache.hadoop.security.token.Token<?> getRenewToken()- Specified by:
getRenewTokenin interfaceorg.apache.hadoop.fs.DelegationTokenRenewer.Renewable
-
setDelegationToken
public <T extends org.apache.hadoop.security.token.TokenIdentifier> void setDelegationToken(org.apache.hadoop.security.token.Token<T> token) - Specified by:
setDelegationTokenin interfaceorg.apache.hadoop.fs.DelegationTokenRenewer.Renewable
-
renewDelegationToken
public long renewDelegationToken(org.apache.hadoop.security.token.Token<?> token) throws IOException - Throws:
IOException
-
cancelDelegationToken
public void cancelDelegationToken(org.apache.hadoop.security.token.Token<?> token) throws IOException - Throws:
IOException
-
getFileBlockLocations
public org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.FileStatus status, long offset, long length) throws IOException - Overrides:
getFileBlockLocationsin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getFileBlockLocations
public org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.Path p, long offset, long length) throws IOException - Overrides:
getFileBlockLocationsin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getTrashRoot
public org.apache.hadoop.fs.Path getTrashRoot(org.apache.hadoop.fs.Path path) - Overrides:
getTrashRootin classorg.apache.hadoop.fs.FileSystem
-
getTrashRoots
- Overrides:
getTrashRootsin classorg.apache.hadoop.fs.FileSystem
-
access
public void access(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.permission.FsAction mode) throws IOException - Overrides:
accessin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getContentSummary
public org.apache.hadoop.fs.ContentSummary getContentSummary(org.apache.hadoop.fs.Path p) throws IOException - Overrides:
getContentSummaryin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getQuotaUsage
public org.apache.hadoop.fs.QuotaUsage getQuotaUsage(org.apache.hadoop.fs.Path p) throws IOException - Overrides:
getQuotaUsagein classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
setQuota
public void setQuota(org.apache.hadoop.fs.Path p, long namespaceQuota, long storagespaceQuota) throws IOException - Overrides:
setQuotain classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
setQuotaByStorageType
public void setQuotaByStorageType(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.StorageType type, long quota) throws IOException - Overrides:
setQuotaByStorageTypein classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getFileChecksum
public org.apache.hadoop.fs.MD5MD5CRC32FileChecksum getFileChecksum(org.apache.hadoop.fs.Path p) throws IOException - Overrides:
getFileChecksumin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getCanonicalServiceName
- Specified by:
getCanonicalServiceNamein interfaceorg.apache.hadoop.security.token.DelegationTokenIssuer- Overrides:
getCanonicalServiceNamein classorg.apache.hadoop.fs.FileSystem
-
setStoragePolicy
- Overrides:
setStoragePolicyin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getAllStoragePolicies
- Overrides:
getAllStoragePoliciesin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getStoragePolicy
- Overrides:
getStoragePolicyin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
unsetStoragePolicy
- Overrides:
unsetStoragePolicyin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getServerDefaults
- Overrides:
getServerDefaultsin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getLinkTarget
- Overrides:
getLinkTargetin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getFileLinkStatus
public org.apache.hadoop.fs.FileStatus getFileLinkStatus(org.apache.hadoop.fs.Path f) throws IOException - Overrides:
getFileLinkStatusin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getStatus
- Overrides:
getStatusin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
getAllErasureCodingPolicies
- Throws:
IOException
-
getAllErasureCodingCodecs
- Throws:
IOException
-
setRetryPolicy
@VisibleForTesting public void setRetryPolicy(org.apache.hadoop.io.retry.RetryPolicy rp) -
getKeyProviderUri
- Specified by:
getKeyProviderUriin interfaceorg.apache.hadoop.crypto.key.KeyProviderTokenIssuer- Throws:
IOException
-
getKeyProvider
- Specified by:
getKeyProviderin interfaceorg.apache.hadoop.crypto.key.KeyProviderTokenIssuer- Throws:
IOException
-
setTestProvider
@VisibleForTesting public void setTestProvider(org.apache.hadoop.crypto.key.KeyProvider kp) -
hasPathCapability
public boolean hasPathCapability(org.apache.hadoop.fs.Path path, String capability) throws IOException HDFS client capabilities. UsesDfsPathCapabilitiesto keep in sync with HDFS.- Specified by:
hasPathCapabilityin interfaceorg.apache.hadoop.fs.PathCapabilities- Overrides:
hasPathCapabilityin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-
createMultipartUploader
public org.apache.hadoop.fs.MultipartUploaderBuilder createMultipartUploader(org.apache.hadoop.fs.Path basePath) throws IOException - Overrides:
createMultipartUploaderin classorg.apache.hadoop.fs.FileSystem- Throws:
IOException
-