Search in sources :

Example 1 with TrinoS3ConfigurationInitializer

use of io.trino.plugin.hive.s3.TrinoS3ConfigurationInitializer in project trino by trinodb.

the class AbstractTestHiveFileSystemS3 method createHdfsConfiguration.

private HdfsConfiguration createHdfsConfiguration() {
    ConfigurationInitializer s3Config = new TrinoS3ConfigurationInitializer(new HiveS3Config().setS3AwsAccessKey(awsAccessKey).setS3AwsSecretKey(awsSecretKey));
    HdfsConfigurationInitializer initializer = new HdfsConfigurationInitializer(new HdfsConfig(), ImmutableSet.of(s3Config));
    return new HiveHdfsConfiguration(initializer, ImmutableSet.of());
}
Also used : HiveS3Config(io.trino.plugin.hive.s3.HiveS3Config) TrinoS3ConfigurationInitializer(io.trino.plugin.hive.s3.TrinoS3ConfigurationInitializer) TrinoS3ConfigurationInitializer(io.trino.plugin.hive.s3.TrinoS3ConfigurationInitializer)

Aggregations

HiveS3Config (io.trino.plugin.hive.s3.HiveS3Config)1 TrinoS3ConfigurationInitializer (io.trino.plugin.hive.s3.TrinoS3ConfigurationInitializer)1