public class WebHdfsFileSystem
extends org.apache.hadoop.fs.FileSystem
implements org.apache.hadoop.fs.DelegationTokenRenewer.Renewable, org.apache.hadoop.crypto.key.KeyProviderTokenIssuer
| Modifier and Type | Class and Description |
|---|---|
protected class |
WebHdfsFileSystem.ReadRunner
This class will allow retries to occur for both open and read operations.
|
class |
WebHdfsFileSystem.WebHdfsInputStream
This class is used for opening, reading, and seeking files while using the
WebHdfsFileSystem.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CANT_FALLBACK_TO_INSECURE_MSG |
protected org.apache.hadoop.hdfs.web.URLConnectionFactory |
connectionFactory
Default connection factory may be overridden in tests to use smaller
timeout values
|
static String |
DFS_HTTP_POLICY_KEY |
static String |
EZ_HEADER |
static String |
FEFINFO_HEADER |
static org.slf4j.Logger |
LOG |
static String |
PATH_PREFIX
Http URI: http://namenode:port/{PATH_PREFIX}/path/to/file
|
protected org.apache.hadoop.io.Text |
tokenServiceName |
static int |
VERSION
WebHdfs version.
|
| Constructor and Description |
|---|
WebHdfsFileSystem() |
| 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 p) |
org.apache.hadoop.fs.FSDataOutputStream |
append(org.apache.hadoop.fs.Path f,
int bufferSize,
org.apache.hadoop.util.Progressable progress) |
void |
cancelDelegationToken(org.apache.hadoop.security.token.Token<?> token) |
protected URI |
canonicalizeUri(URI uri) |
void |
close() |
void |
concat(org.apache.hadoop.fs.Path trg,
org.apache.hadoop.fs.Path[] srcs) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress) |
org.apache.hadoop.fs.MultipartUploaderBuilder |
createMultipartUploader(org.apache.hadoop.fs.Path basePath) |
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) |
org.apache.hadoop.fs.Path |
createSnapshot(org.apache.hadoop.fs.Path path,
String snapshotName) |
void |
createSymlink(org.apache.hadoop.fs.Path destination,
org.apache.hadoop.fs.Path f,
boolean createParent)
Create a symlink pointing to the destination path.
|
boolean |
delete(org.apache.hadoop.fs.Path f,
boolean recursive) |
void |
deleteSnapshot(org.apache.hadoop.fs.Path path,
String snapshotName) |
void |
disableECPolicy(String policyName) |
void |
disallowSnapshot(org.apache.hadoop.fs.Path p) |
void |
enableECPolicy(String policyName) |
org.apache.hadoop.fs.permission.AclStatus |
getAclStatus(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.security.token.DelegationTokenIssuer[] |
getAdditionalTokenIssuers() |
Map<String,String> |
getAllErasureCodingCodecs() |
Collection<org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyInfo> |
getAllErasureCodingPolicies() |
Collection<org.apache.hadoop.hdfs.protocol.BlockStoragePolicy> |
getAllStoragePolicies() |
String |
getCanonicalServiceName() |
URI |
getCanonicalUri() |
org.apache.hadoop.fs.ContentSummary |
getContentSummary(org.apache.hadoop.fs.Path p) |
long |
getDefaultBlockSize() |
protected int |
getDefaultPort() |
short |
getDefaultReplication() |
protected org.apache.hadoop.security.token.Token<?> |
getDelegationToken() |
org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> |
getDelegationToken(String renewer) |
org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy |
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.MD5MD5CRC32FileChecksum |
getFileChecksum(org.apache.hadoop.fs.Path p) |
org.apache.hadoop.fs.FileStatus |
getFileLinkStatus(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.fs.FileStatus |
getFileStatus(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.fs.Path |
getHomeDirectory() |
static String |
getHomeDirectoryString(org.apache.hadoop.security.UserGroupInformation ugi)
Deprecated.
|
org.apache.hadoop.crypto.key.KeyProvider |
getKeyProvider() |
URI |
getKeyProviderUri() |
org.apache.hadoop.fs.Path |
getLinkTarget(org.apache.hadoop.fs.Path f) |
org.apache.hadoop.fs.QuotaUsage |
getQuotaUsage(org.apache.hadoop.fs.Path p) |
org.apache.hadoop.security.token.Token<?> |
getRenewToken() |
String |
getScheme()
Return the protocol scheme for the FileSystem.
|
org.apache.hadoop.fs.FsServerDefaults |
getServerDefaults() |
SnapshotDiffReport |
getSnapshotDiffReport(org.apache.hadoop.fs.Path snapshotDir,
String fromSnapshot,
String toSnapshot) |
SnapshotDiffReportListing |
getSnapshotDiffReportListing(String snapshotDir,
String fromSnapshot,
String toSnapshot,
byte[] startPath,
int index) |
SnapshotStatus[] |
getSnapshotListing(org.apache.hadoop.fs.Path snapshotDir) |
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) |
protected org.apache.hadoop.io.Text |
getTokenKind() |
protected String |
getTransportScheme()
return the underlying transport protocol (http / https).
|
org.apache.hadoop.fs.Path |
getTrashRoot(org.apache.hadoop.fs.Path path) |
Collection<org.apache.hadoop.fs.FileStatus> |
getTrashRoots(boolean allUsers) |
URI |
getUri() |
org.apache.hadoop.fs.Path |
getWorkingDirectory() |
byte[] |
getXAttr(org.apache.hadoop.fs.Path p,
String name) |
Map<String,byte[]> |
getXAttrs(org.apache.hadoop.fs.Path p) |
Map<String,byte[]> |
getXAttrs(org.apache.hadoop.fs.Path p,
List<String> names) |
boolean |
hasPathCapability(org.apache.hadoop.fs.Path path,
String capability)
HDFS client capabilities.
|
void |
initialize(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)
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 p) |
boolean |
mkdirs(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission) |
void |
modifyAclEntries(org.apache.hadoop.fs.Path path,
List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) |
org.apache.hadoop.fs.FSDataInputStream |
open(org.apache.hadoop.fs.Path f,
int bufferSize) |
void |
removeAcl(org.apache.hadoop.fs.Path path) |
void |
removeAclEntries(org.apache.hadoop.fs.Path path,
List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) |
void |
removeDefaultAcl(org.apache.hadoop.fs.Path path) |
void |
removeXAttr(org.apache.hadoop.fs.Path p,
String name) |
boolean |
rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
void |
rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst,
org.apache.hadoop.fs.Options.Rename... options) |
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 p) |
void |
setAcl(org.apache.hadoop.fs.Path p,
List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) |
<T extends org.apache.hadoop.security.token.TokenIdentifier> |
setDelegationToken(org.apache.hadoop.security.token.Token<T> token) |
void |
setErasureCodingPolicy(org.apache.hadoop.fs.Path p,
String policyName) |
void |
setOwner(org.apache.hadoop.fs.Path p,
String owner,
String group) |
void |
setPermission(org.apache.hadoop.fs.Path p,
org.apache.hadoop.fs.permission.FsPermission permission) |
void |
setQuota(org.apache.hadoop.fs.Path p,
long namespaceQuota,
long storagespaceQuota) |
void |
setQuotaByStorageType(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.StorageType type,
long quota) |
boolean |
setReplication(org.apache.hadoop.fs.Path p,
short replication) |
void |
setRetryPolicy(org.apache.hadoop.io.retry.RetryPolicy rp) |
void |
setStoragePolicy(org.apache.hadoop.fs.Path p,
String policyName) |
void |
setTestProvider(org.apache.hadoop.crypto.key.KeyProvider kp) |
void |
setTimes(org.apache.hadoop.fs.Path p,
long mtime,
long atime) |
void |
setWorkingDirectory(org.apache.hadoop.fs.Path dir) |
void |
setXAttr(org.apache.hadoop.fs.Path p,
String name,
byte[] value,
EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag) |
boolean |
supportsSymlinks() |
boolean |
truncate(org.apache.hadoop.fs.Path f,
long newLength) |
void |
unsetErasureCodingPolicy(org.apache.hadoop.fs.Path p) |
void |
unsetStoragePolicy(org.apache.hadoop.fs.Path src) |
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, createDataOutputStreamBuilder, createFile, createNewFile, createNonRecursive, createNonRecursive, createPathHandle, createSnapshot, delete, deleteOnExit, enableSymlinks, exists, fixRelativePart, get, get, get, getAllStatistics, getBlockSize, 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, startLocalOutputpublic static final org.slf4j.Logger LOG
public static final int VERSION
public static final String PATH_PREFIX
public static final String EZ_HEADER
public static final String FEFINFO_HEADER
public static final String DFS_HTTP_POLICY_KEY
protected org.apache.hadoop.hdfs.web.URLConnectionFactory connectionFactory
@VisibleForTesting public static final String CANT_FALLBACK_TO_INSECURE_MSG
protected org.apache.hadoop.io.Text tokenServiceName
public String getScheme()
getScheme in class org.apache.hadoop.fs.FileSystemwebhdfsprotected String getTransportScheme()
protected org.apache.hadoop.io.Text getTokenKind()
public void initialize(URI uri, org.apache.hadoop.conf.Configuration conf) throws IOException
initialize in class org.apache.hadoop.fs.FileSystemIOExceptionpublic URI getCanonicalUri()
getCanonicalUri in class org.apache.hadoop.fs.FileSystemprotected org.apache.hadoop.security.token.Token<?> getDelegationToken()
throws IOException
IOExceptionprotected int getDefaultPort()
getDefaultPort in class org.apache.hadoop.fs.FileSystempublic URI getUri()
getUri in class org.apache.hadoop.fs.FileSystemprotected URI canonicalizeUri(URI uri)
canonicalizeUri in class org.apache.hadoop.fs.FileSystem@Deprecated public static String getHomeDirectoryString(org.apache.hadoop.security.UserGroupInformation ugi)
public org.apache.hadoop.fs.Path getHomeDirectory()
getHomeDirectory in class org.apache.hadoop.fs.FileSystempublic org.apache.hadoop.fs.Path getWorkingDirectory()
getWorkingDirectory in class org.apache.hadoop.fs.FileSystempublic void setWorkingDirectory(org.apache.hadoop.fs.Path dir)
setWorkingDirectory in class org.apache.hadoop.fs.FileSystem@VisibleForTesting public static Map<?,?> jsonParse(HttpURLConnection c, boolean useErrorStream) throws IOException
IOExceptionpublic org.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path f)
throws IOException
getFileStatus in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.permission.AclStatus getAclStatus(org.apache.hadoop.fs.Path f)
throws IOException
getAclStatus in class org.apache.hadoop.fs.FileSystemIOExceptionpublic 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 boolean supportsSymlinks()
supportsSymlinks in class org.apache.hadoop.fs.FileSystempublic void createSymlink(org.apache.hadoop.fs.Path destination,
org.apache.hadoop.fs.Path f,
boolean createParent)
throws IOException
createSymlink in class org.apache.hadoop.fs.FileSystemIOExceptionpublic boolean rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
rename in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst,
org.apache.hadoop.fs.Options.Rename... options)
throws IOException
rename in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void setXAttr(org.apache.hadoop.fs.Path p,
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 p,
String name)
throws IOException
getXAttr in class org.apache.hadoop.fs.FileSystemIOExceptionpublic Map<String,byte[]> getXAttrs(org.apache.hadoop.fs.Path p) throws IOException
getXAttrs in class org.apache.hadoop.fs.FileSystemIOExceptionpublic Map<String,byte[]> getXAttrs(org.apache.hadoop.fs.Path p, List<String> names) throws IOException
getXAttrs in class org.apache.hadoop.fs.FileSystemIOExceptionpublic List<String> listXAttrs(org.apache.hadoop.fs.Path p) throws IOException
listXAttrs in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void removeXAttr(org.apache.hadoop.fs.Path p,
String name)
throws IOException
removeXAttr in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void setOwner(org.apache.hadoop.fs.Path p,
String owner,
String group)
throws IOException
setOwner in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void setPermission(org.apache.hadoop.fs.Path p,
org.apache.hadoop.fs.permission.FsPermission permission)
throws IOException
setPermission in class org.apache.hadoop.fs.FileSystemIOExceptionpublic 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.FileSystemIOExceptionpublic 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.FileSystemIOExceptionpublic void removeDefaultAcl(org.apache.hadoop.fs.Path path)
throws IOException
removeDefaultAcl in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void removeAcl(org.apache.hadoop.fs.Path path)
throws IOException
removeAcl in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void setAcl(org.apache.hadoop.fs.Path p,
List<org.apache.hadoop.fs.permission.AclEntry> aclSpec)
throws IOException
setAcl in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void allowSnapshot(org.apache.hadoop.fs.Path p)
throws IOException
IOExceptionpublic void satisfyStoragePolicy(org.apache.hadoop.fs.Path p)
throws IOException
satisfyStoragePolicy in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void enableECPolicy(String policyName) throws IOException
IOExceptionpublic void disableECPolicy(String policyName) throws IOException
IOExceptionpublic void setErasureCodingPolicy(org.apache.hadoop.fs.Path p,
String policyName)
throws IOException
IOExceptionpublic void unsetErasureCodingPolicy(org.apache.hadoop.fs.Path p)
throws IOException
IOExceptionpublic org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy getErasureCodingPolicy(org.apache.hadoop.fs.Path p)
throws IOException
IOExceptionpublic 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 disallowSnapshot(org.apache.hadoop.fs.Path p)
throws IOException
IOExceptionpublic void deleteSnapshot(org.apache.hadoop.fs.Path path,
String snapshotName)
throws IOException
deleteSnapshot 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.FileSystemIOException@VisibleForTesting public SnapshotDiffReportListing getSnapshotDiffReportListing(String snapshotDir, String fromSnapshot, String toSnapshot, byte[] startPath, int index) throws IOException
IOExceptionpublic SnapshotDiffReport getSnapshotDiffReport(org.apache.hadoop.fs.Path snapshotDir, String fromSnapshot, String toSnapshot) throws IOException
IOExceptionpublic SnapshottableDirectoryStatus[] getSnapshottableDirectoryList() throws IOException
IOExceptionpublic SnapshotStatus[] getSnapshotListing(org.apache.hadoop.fs.Path snapshotDir) throws IOException
IOExceptionpublic boolean setReplication(org.apache.hadoop.fs.Path p,
short replication)
throws IOException
setReplication in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void setTimes(org.apache.hadoop.fs.Path p,
long mtime,
long atime)
throws IOException
setTimes in class org.apache.hadoop.fs.FileSystemIOExceptionpublic long getDefaultBlockSize()
getDefaultBlockSize in class org.apache.hadoop.fs.FileSystempublic short getDefaultReplication()
getDefaultReplication in class org.apache.hadoop.fs.FileSystempublic void concat(org.apache.hadoop.fs.Path trg,
org.apache.hadoop.fs.Path[] srcs)
throws IOException
concat in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress)
throws IOException
create in class org.apache.hadoop.fs.FileSystemIOExceptionpublic 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
createNonRecursive in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.FSDataOutputStream append(org.apache.hadoop.fs.Path f,
int bufferSize,
org.apache.hadoop.util.Progressable progress)
throws IOException
append in class org.apache.hadoop.fs.FileSystemIOExceptionpublic boolean truncate(org.apache.hadoop.fs.Path f,
long newLength)
throws IOException
truncate 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.FileSystemIOExceptionpublic org.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path f,
int bufferSize)
throws IOException
open in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.fs.FileSystemIOExceptionpublic 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
FileStatus, as well as iteration information.listStatusBatch in class org.apache.hadoop.fs.FileSystemf - given pathFileNotFoundExceptionIOExceptionpublic org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> getDelegationToken(String renewer) throws IOException
getDelegationToken in interface org.apache.hadoop.security.token.DelegationTokenIssuergetDelegationToken in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.security.token.DelegationTokenIssuer[] getAdditionalTokenIssuers()
throws IOException
getAdditionalTokenIssuers in interface org.apache.hadoop.security.token.DelegationTokenIssuergetAdditionalTokenIssuers in class org.apache.hadoop.fs.FileSystemIOExceptionpublic 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 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.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.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.Path p,
long offset,
long length)
throws IOException
getFileBlockLocations in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.Path getTrashRoot(org.apache.hadoop.fs.Path path)
getTrashRoot in class org.apache.hadoop.fs.FileSystempublic Collection<org.apache.hadoop.fs.FileStatus> getTrashRoots(boolean allUsers)
getTrashRoots in class org.apache.hadoop.fs.FileSystempublic 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 org.apache.hadoop.fs.ContentSummary getContentSummary(org.apache.hadoop.fs.Path p)
throws IOException
getContentSummary in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.QuotaUsage getQuotaUsage(org.apache.hadoop.fs.Path p)
throws IOException
getQuotaUsage in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void setQuota(org.apache.hadoop.fs.Path p,
long namespaceQuota,
long storagespaceQuota)
throws IOException
setQuota in class org.apache.hadoop.fs.FileSystemIOExceptionpublic void setQuotaByStorageType(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.StorageType type,
long quota)
throws IOException
setQuotaByStorageType in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.MD5MD5CRC32FileChecksum getFileChecksum(org.apache.hadoop.fs.Path p)
throws IOException
getFileChecksum in class org.apache.hadoop.fs.FileSystemIOExceptionpublic String getCanonicalServiceName()
getCanonicalServiceName in interface org.apache.hadoop.security.token.DelegationTokenIssuergetCanonicalServiceName in class org.apache.hadoop.fs.FileSystempublic void setStoragePolicy(org.apache.hadoop.fs.Path p,
String policyName)
throws IOException
setStoragePolicy 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 unsetStoragePolicy(org.apache.hadoop.fs.Path src)
throws IOException
unsetStoragePolicy 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.Path getLinkTarget(org.apache.hadoop.fs.Path f)
throws IOException
getLinkTarget in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.FileStatus getFileLinkStatus(org.apache.hadoop.fs.Path f)
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
IOException@VisibleForTesting public void setRetryPolicy(org.apache.hadoop.io.retry.RetryPolicy rp)
public URI getKeyProviderUri() throws IOException
getKeyProviderUri in interface org.apache.hadoop.crypto.key.KeyProviderTokenIssuerIOExceptionpublic org.apache.hadoop.crypto.key.KeyProvider getKeyProvider()
throws IOException
getKeyProvider in interface org.apache.hadoop.crypto.key.KeyProviderTokenIssuerIOException@VisibleForTesting public void setTestProvider(org.apache.hadoop.crypto.key.KeyProvider kp)
public boolean hasPathCapability(org.apache.hadoop.fs.Path path,
String capability)
throws IOException
DfsPathCapabilities to keep in sync with HDFS.
hasPathCapability in interface org.apache.hadoop.fs.PathCapabilitieshasPathCapability in class org.apache.hadoop.fs.FileSystemIOExceptionpublic org.apache.hadoop.fs.MultipartUploaderBuilder createMultipartUploader(org.apache.hadoop.fs.Path basePath)
throws IOException
createMultipartUploader in class org.apache.hadoop.fs.FileSystemIOExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.