Package io.trino.hdfs

Class HdfsEnvironment

java.lang.Object
io.trino.hdfs.HdfsEnvironment

public class HdfsEnvironment extends Object
  • Constructor Details

  • Method Details

    • shutdown

      @PreDestroy public void shutdown() throws IOException
      Throws:
      IOException
    • getConfiguration

      public org.apache.hadoop.conf.Configuration getConfiguration(HdfsContext context, org.apache.hadoop.fs.Path path)
    • getFileSystem

      public org.apache.hadoop.fs.FileSystem getFileSystem(HdfsContext context, org.apache.hadoop.fs.Path path) throws IOException
      Throws:
      IOException
    • getFileSystem

      public org.apache.hadoop.fs.FileSystem getFileSystem(ConnectorIdentity identity, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration configuration) throws IOException
      Throws:
      IOException
    • getNewDirectoryPermissions

      public Optional<org.apache.hadoop.fs.permission.FsPermission> getNewDirectoryPermissions()
    • isNewFileInheritOwnership

      public boolean isNewFileInheritOwnership()
    • doAs

      public <R, E extends Exception> R doAs(ConnectorIdentity identity, GenericExceptionAction<R,E> action) throws E
      Throws:
      E extends Exception
    • createGcsStorage

      public com.google.cloud.hadoop.repackaged.gcs.com.google.api.services.storage.Storage createGcsStorage(HdfsContext context, org.apache.hadoop.fs.Path path)