Package org.apache.hadoop.fs.azure

Class NativeAzureFileSystem

All Implemented Interfaces:
Closeable, AutoCloseable, Configurable, BulkDeleteSource, org.apache.hadoop.fs.PathCapabilities, org.apache.hadoop.security.token.DelegationTokenIssuer

@Public @Stable @Deprecated public class NativeAzureFileSystem extends FileSystem
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.
  • Field Details

  • 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:
      initialize in class FileSystem
      Parameters:
      uri - the URI of the file system
      conf - the configuration
      Throws:
      IOException - on IO problems
      UnsupportedOperationException - if the URI is invalid
    • getScheme

      public String getScheme()
      Deprecated.
      Description copied from class: FileSystem
      Return the protocol scheme for this FileSystem.

      This implementation throws an UnsupportedOperationException.

      Overrides:
      getScheme in class FileSystem
      Returns:
      the protocol scheme for this FileSystem.
    • getUri

      public URI getUri()
      Deprecated.
      Description copied from class: FileSystem
      Returns a URI which identifies this FileSystem.
      Specified by:
      getUri in class FileSystem
      Returns:
      the URI of this filesystem.
    • open

      public FSDataInputStream open(Path path, int i) throws IOException
      Deprecated.
      Description copied from class: FileSystem
      Opens an FSDataInputStream at the indicated Path.
      Specified by:
      open in class FileSystem
      Parameters:
      path - the file name to open
      i - 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: FileSystem
      Create an FSDataOutputStream at the indicated Path with write-progress reporting.
      Specified by:
      create in class FileSystem
      Parameters:
      path - the file name to open
      fsPermission - file permission
      b - 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 size
      progressable - the progress reporter
      Returns:
      output stream.
      Throws:
      IOException - IO failure
      See Also:
    • append

      public FSDataOutputStream append(Path path, int i, Progressable progressable) throws IOException
      Deprecated.
      Description copied from class: FileSystem
      Append to an existing file (optional operation).
      Specified by:
      append in class FileSystem
      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

      public boolean rename(Path path, Path path1) throws IOException
      Deprecated.
      Description copied from class: FileSystem
      Renames Path src to Path dst.
      Specified by:
      rename in class FileSystem
      Parameters:
      path - path to be renamed
      path1 - new path after rename
      Returns:
      true if rename is successful
      Throws:
      IOException - on failure
    • delete

      public boolean delete(Path path, boolean b) throws IOException
      Deprecated.
      Description copied from class: FileSystem
      Delete a file.
      Specified by:
      delete in class FileSystem
      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

      public FileStatus[] listStatus(Path path) throws IOException
      Deprecated.
      Description copied from class: FileSystem
      List 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:
      listStatus in class FileSystem
      Parameters:
      path - given path
      Returns:
      the statuses of the files/directories in the given patch
      Throws:
      FileNotFoundException - when the path does not exist
      IOException - see specific implementation
    • setWorkingDirectory

      public void setWorkingDirectory(Path path)
      Deprecated.
      Description copied from class: FileSystem
      Set the current working directory for the given FileSystem. All relative paths will be resolved relative to it.
      Specified by:
      setWorkingDirectory in class FileSystem
      Parameters:
      path - Path of new working directory
    • getWorkingDirectory

      public Path getWorkingDirectory()
      Deprecated.
      Description copied from class: FileSystem
      Get the current working directory for the given FileSystem
      Specified by:
      getWorkingDirectory in class FileSystem
      Returns:
      the directory pathname
    • mkdirs

      public boolean mkdirs(Path path, FsPermission fsPermission) throws IOException
      Deprecated.
      Description copied from class: FileSystem
      Make 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:
      mkdirs in class FileSystem
      Parameters:
      path - path to create
      fsPermission - to apply to f
      Returns:
      if mkdir success true, not false.
      Throws:
      IOException - IO failure
    • getFileStatus

      public FileStatus getFileStatus(Path path) throws IOException
      Deprecated.
      Description copied from class: FileSystem
      Return a file status object that represents the path.
      Specified by:
      getFileStatus in class FileSystem
      Parameters:
      path - The path we want information from
      Returns:
      a FileStatus object
      Throws:
      FileNotFoundException - when the path does not exist
      IOException - see specific implementation