Package org.apache.hadoop.fs.azure
Class NativeAzureFileSystem
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.fs.FileSystem
org.apache.hadoop.fs.azure.NativeAzureFileSystem
- All Implemented Interfaces:
Closeable,AutoCloseable,Configurable,BulkDeleteSource,org.apache.hadoop.fs.PathCapabilities,org.apache.hadoop.security.token.DelegationTokenIssuer
Deprecated.
A
FileSystem for reading and writing files stored on Windows Azure. This implementation is
blob-based and stores files on Azure in their native form so they can be read
by other Azure tools.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classorg.apache.hadoop.fs.azure.NativeAzureFileSystem.SecureDeprecated.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 FileStatus>, org.apache.hadoop.fs.FileSystem.Statistics -
Field Summary
FieldsFields inherited from class org.apache.hadoop.fs.FileSystem
DEFAULT_FS, FS_DEFAULT_NAME_KEY, LOG, 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 TypeMethodDescriptionappend(Path path, int i, Progressable progressable) Deprecated.Append to an existing file (optional operation).create(Path path, FsPermission fsPermission, boolean b, int i, short i1, long l, Progressable progressable) Deprecated.Create an FSDataOutputStream at the indicated Path with write-progress reporting.booleanDeprecated.Delete a file.getFileStatus(Path path) Deprecated.Return a file status object that represents the path.Deprecated.Return the protocol scheme for this FileSystem.getUri()Deprecated.Returns a URI which identifies this FileSystem.Deprecated.Get the current working directory for the given FileSystemvoidinitialize(URI uri, Configuration conf) Deprecated.Fails Any Attempt to use WASB FileSystem Implementation.listStatus(Path path) Deprecated.List the statuses of the files/directories in the given path if the path is a directory.booleanmkdirs(Path path, FsPermission fsPermission) Deprecated.Make the given file and all non-existent parents into directories.Deprecated.Opens an FSDataInputStream at the indicated Path.booleanDeprecated.Renames Path src to Path dst.voidsetWorkingDirectory(Path path) Deprecated.Set the current working directory for the given FileSystem.Methods inherited from class org.apache.hadoop.fs.FileSystem
access, append, append, append, append, appendFile, areSymlinksEnabled, cancelDeleteOnExit, canonicalizeUri, checkPath, clearStatistics, close, closeAll, closeAllForUGI, completeLocalOutput, concat, 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, createSnapshot, createSymlink, delete, deleteOnExit, deleteSnapshot, enableSymlinks, exists, fixRelativePart, get, get, get, getAclStatus, getAdditionalTokenIssuers, getAllStatistics, getAllStoragePolicies, getBlockSize, getCanonicalServiceName, getCanonicalUri, getChildFileSystems, getContentSummary, getDefaultBlockSize, getDefaultBlockSize, getDefaultPort, getDefaultReplication, getDefaultReplication, getDefaultUri, getDelegationToken, getEnclosingRoot, getFileBlockLocations, getFileBlockLocations, getFileChecksum, getFileChecksum, getFileLinkStatus, getFileSystemClass, getFSofPath, getGlobalStorageStatistics, getHomeDirectory, getInitialWorkingDirectory, getLength, getLinkTarget, getLocal, getName, getNamed, getPathHandle, getQuotaUsage, getReplication, getServerDefaults, getServerDefaults, getStatistics, getStatistics, getStatus, getStatus, getStoragePolicy, getStorageStatistics, getTrashRoot, getTrashRoots, getUsed, getUsed, getXAttr, getXAttrs, getXAttrs, globStatus, globStatus, hasPathCapability, isDirectory, isFile, listCorruptFileBlocks, listFiles, listLocatedStatus, listLocatedStatus, listStatus, listStatus, listStatus, listStatusBatch, listStatusIterator, listXAttrs, makeQualified, mkdirs, mkdirs, modifyAclEntries, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, msync, newInstance, newInstance, newInstance, newInstanceLocal, open, open, open, openFile, openFile, openFileWithOptions, openFileWithOptions, primitiveCreate, primitiveMkdir, primitiveMkdir, printStatistics, processDeleteOnExit, removeAcl, removeAclEntries, removeDefaultAcl, removeXAttr, rename, renameSnapshot, resolveLink, resolvePath, satisfyStoragePolicy, setAcl, setDefaultUri, setDefaultUri, setOwner, setPermission, setQuota, setQuotaByStorageType, setReplication, setStoragePolicy, setTimes, setVerifyChecksum, setWriteChecksum, setXAttr, setXAttr, startLocalOutput, supportsSymlinks, truncate, unsetStoragePolicyMethods 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
-
WASB_INIT_ERROR_MESSAGE
Deprecated.- See Also:
-
-
Constructor Details
-
NativeAzureFileSystem
public NativeAzureFileSystem()Deprecated.
-
-
Method Details
-
initialize
public void initialize(URI uri, Configuration conf) throws IOException, UnsupportedOperationException Deprecated.Fails Any Attempt to use WASB FileSystem Implementation.- Overrides:
initializein classFileSystem- Parameters:
uri- the URI of the file systemconf- the configuration- Throws:
IOException- on IO problemsUnsupportedOperationException- if the URI is invalid
-
getScheme
Deprecated.Description copied from class:FileSystemReturn the protocol scheme for this FileSystem.This implementation throws an
UnsupportedOperationException.- Overrides:
getSchemein classFileSystem- Returns:
- the protocol scheme for this FileSystem.
-
getUri
Deprecated.Description copied from class:FileSystemReturns a URI which identifies this FileSystem.- Specified by:
getUriin classFileSystem- Returns:
- the URI of this filesystem.
-
open
Deprecated.Description copied from class:FileSystemOpens an FSDataInputStream at the indicated Path.- Specified by:
openin classFileSystem- Parameters:
path- the file name to openi- the size of the buffer to be used.- Returns:
- input stream.
- Throws:
IOException- IO failure
-
create
public FSDataOutputStream create(Path path, FsPermission fsPermission, boolean b, int i, short i1, long l, Progressable progressable) throws IOException Deprecated.Description copied from class:FileSystemCreate an FSDataOutputStream at the indicated Path with write-progress reporting.- Specified by:
createin classFileSystem- Parameters:
path- the file name to openfsPermission- file permissionb- if a file with this name already exists, then if true, the file will be overwritten, and if false an error will be thrown.i- the size of the buffer to be used.i1- required block replication for the file.l- block sizeprogressable- the progress reporter- Returns:
- output stream.
- Throws:
IOException- IO failure- See Also:
-
append
Deprecated.Description copied from class:FileSystemAppend to an existing file (optional operation).- Specified by:
appendin classFileSystem- Parameters:
path- the existing file to be appended.i- the size of the buffer to be used.progressable- for reporting progress if it is not null.- Returns:
- output stream.
- Throws:
IOException- IO failure
-
rename
Deprecated.Description copied from class:FileSystemRenames Path src to Path dst.- Specified by:
renamein classFileSystem- Parameters:
path- path to be renamedpath1- new path after rename- Returns:
- true if rename is successful
- Throws:
IOException- on failure
-
delete
Deprecated.Description copied from class:FileSystemDelete a file.- Specified by:
deletein classFileSystem- Parameters:
path- the path to delete.b- 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.- Returns:
- true if delete is successful else false.
- Throws:
IOException- IO failure
-
listStatus
Deprecated.Description copied from class:FileSystemList the statuses of the files/directories in the given path if the path is a directory.Does not guarantee to return the List of files/directories status in a sorted order.
Will not return null. Expect IOException upon access error.
- Specified by:
listStatusin classFileSystem- Parameters:
path- given path- Returns:
- the statuses of the files/directories in the given patch
- Throws:
FileNotFoundException- when the path does not existIOException- see specific implementation
-
setWorkingDirectory
Deprecated.Description copied from class:FileSystemSet the current working directory for the given FileSystem. All relative paths will be resolved relative to it.- Specified by:
setWorkingDirectoryin classFileSystem- Parameters:
path- Path of new working directory
-
getWorkingDirectory
Deprecated.Description copied from class:FileSystemGet the current working directory for the given FileSystem- Specified by:
getWorkingDirectoryin classFileSystem- Returns:
- the directory pathname
-
mkdirs
Deprecated.Description copied from class:FileSystemMake the given file and all non-existent parents into directories. Has roughly the semantics of Unix @{code mkdir -p}. Existence of the directory hierarchy is not an error.- Specified by:
mkdirsin classFileSystem- Parameters:
path- path to createfsPermission- to apply to f- Returns:
- if mkdir success true, not false.
- Throws:
IOException- IO failure
-
getFileStatus
Deprecated.Description copied from class:FileSystemReturn a file status object that represents the path.- Specified by:
getFileStatusin classFileSystem- Parameters:
path- The path we want information from- Returns:
- a FileStatus object
- Throws:
FileNotFoundException- when the path does not existIOException- see specific implementation
-