Package io.trino.hdfs
Class HdfsEnvironment
java.lang.Object
io.trino.hdfs.HdfsEnvironment
-
Constructor Summary
ConstructorsConstructorDescriptionHdfsEnvironment(io.opentelemetry.api.OpenTelemetry openTelemetry, HdfsConfiguration hdfsConfiguration, HdfsConfig config, HdfsAuthentication hdfsAuthentication, Optional<GcsStorageFactory> gcsStorageFactory) HdfsEnvironment(HdfsConfiguration hdfsConfiguration, HdfsConfig config, HdfsAuthentication hdfsAuthentication) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.cloud.hadoop.repackaged.gcs.com.google.api.services.storage.StoragecreateGcsStorage(HdfsContext context, org.apache.hadoop.fs.Path path) <R,E extends Exception>
RdoAs(ConnectorIdentity identity, GenericExceptionAction<R, E> action) org.apache.hadoop.conf.ConfigurationgetConfiguration(HdfsContext context, org.apache.hadoop.fs.Path path) org.apache.hadoop.fs.FileSystemgetFileSystem(HdfsContext context, org.apache.hadoop.fs.Path path) org.apache.hadoop.fs.FileSystemgetFileSystem(ConnectorIdentity identity, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration configuration) Optional<org.apache.hadoop.fs.permission.FsPermission>booleanvoidshutdown()
-
Constructor Details
-
HdfsEnvironment
public HdfsEnvironment(HdfsConfiguration hdfsConfiguration, HdfsConfig config, HdfsAuthentication hdfsAuthentication) -
HdfsEnvironment
@Inject public HdfsEnvironment(io.opentelemetry.api.OpenTelemetry openTelemetry, HdfsConfiguration hdfsConfiguration, HdfsConfig config, HdfsAuthentication hdfsAuthentication, Optional<GcsStorageFactory> gcsStorageFactory)
-
-
Method Details
-
shutdown
- 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
-
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)
-