use of io.trino.plugin.exchange.containers.MinioStorage in project trino by trinodb.
the class TestHiveFaultTolerantExecutionConnectorTest method createQueryRunner.
@Override
protected QueryRunner createQueryRunner() throws Exception {
this.minioStorage = new MinioStorage("test-exchange-spooling-" + randomTableSuffix());
minioStorage.start();
return BaseHiveConnectorTest.createHiveQueryRunner(getExtraProperties(), getExchangeManagerProperties(minioStorage));
}
use of io.trino.plugin.exchange.containers.MinioStorage in project trino by trinodb.
the class TestHiveFaultTolerantExecutionWindowQueries method createQueryRunner.
@Override
protected QueryRunner createQueryRunner(Map<String, String> extraProperties) throws Exception {
this.minioStorage = new MinioStorage("test-exchange-spooling-" + randomTableSuffix());
minioStorage.start();
return HiveQueryRunner.builder().setExtraProperties(extraProperties).setAdditionalSetup(runner -> {
runner.installPlugin(new FileSystemExchangePlugin());
runner.loadExchangeManager("filesystem", getExchangeManagerProperties(minioStorage));
}).setInitialTables(getTables()).build();
}
use of io.trino.plugin.exchange.containers.MinioStorage in project trino by trinodb.
the class TestHiveQueryFailureRecoveryTest method createQueryRunner.
@Override
protected QueryRunner createQueryRunner(List<TpchTable<?>> requiredTpchTables, Map<String, String> configProperties, Map<String, String> coordinatorProperties) throws Exception {
// randomizing bucket name to ensure cached TrinoS3FileSystem objects are not reused
String bucketName = "test-hive-insert-overwrite-" + randomTableSuffix();
this.dockerizedS3DataLake = new HiveMinioDataLake(bucketName, ImmutableMap.of(), HiveHadoop.DEFAULT_IMAGE);
dockerizedS3DataLake.start();
this.minioStorage = new MinioStorage("test-exchange-spooling-" + randomTableSuffix());
minioStorage.start();
return S3HiveQueryRunner.builder(dockerizedS3DataLake).setInitialTables(requiredTpchTables).setExtraProperties(configProperties).setCoordinatorProperties(coordinatorProperties).setAdditionalSetup(runner -> {
runner.installPlugin(new FileSystemExchangePlugin());
runner.loadExchangeManager("filesystem", getExchangeManagerProperties(minioStorage));
}).setHiveProperties(ImmutableMap.<String, String>builder().put("hive.s3.streaming.enabled", "false").buildOrThrow()).build();
}
use of io.trino.plugin.exchange.containers.MinioStorage in project trino by trinodb.
the class TestIcebergQueryFailureRecoveryTest method createQueryRunner.
@Override
protected QueryRunner createQueryRunner(List<TpchTable<?>> requiredTpchTables, Map<String, String> configProperties, Map<String, String> coordinatorProperties) throws Exception {
this.minioStorage = new MinioStorage("test-exchange-spooling-" + randomTableSuffix());
minioStorage.start();
return IcebergQueryRunner.builder().setInitialTables(requiredTpchTables).setCoordinatorProperties(coordinatorProperties).setExtraProperties(configProperties).setAdditionalSetup(runner -> {
runner.installPlugin(new FileSystemExchangePlugin());
runner.loadExchangeManager("filesystem", getExchangeManagerProperties(minioStorage));
}).build();
}
use of io.trino.plugin.exchange.containers.MinioStorage in project trino by trinodb.
the class TestHiveTaskFailureRecoveryTest method createQueryRunner.
@Override
protected QueryRunner createQueryRunner(List<TpchTable<?>> requiredTpchTables, Map<String, String> configProperties, Map<String, String> coordinatorProperties) throws Exception {
// randomizing bucket name to ensure cached TrinoS3FileSystem objects are not reused
String bucketName = "test-hive-insert-overwrite-" + randomTableSuffix();
this.dockerizedS3DataLake = new HiveMinioDataLake(bucketName, ImmutableMap.of(), HiveHadoop.DEFAULT_IMAGE);
dockerizedS3DataLake.start();
this.minioStorage = new MinioStorage("test-exchange-spooling-" + randomTableSuffix());
minioStorage.start();
return S3HiveQueryRunner.builder(dockerizedS3DataLake).setInitialTables(requiredTpchTables).setExtraProperties(ImmutableMap.<String, String>builder().putAll(configProperties).put("enable-dynamic-filtering", "false").buildOrThrow()).setCoordinatorProperties(coordinatorProperties).setAdditionalSetup(runner -> {
runner.installPlugin(new FileSystemExchangePlugin());
runner.loadExchangeManager("filesystem", getExchangeManagerProperties(minioStorage));
}).setHiveProperties(ImmutableMap.<String, String>builder().put("hive.s3.streaming.enabled", "false").buildOrThrow()).build();
}
Aggregations