Search in sources :

Example 1 with DynamoDbLockManager

use of org.apache.iceberg.aws.dynamodb.DynamoDbLockManager in project iceberg by apache.

the class TestGlueCatalogLock method beforeClass.

@BeforeClass
public static void beforeClass() {
    GlueTestBase.beforeClass();
    String testBucketPath = "s3://" + testBucketName + "/" + testPathPrefix;
    lockTableName = getRandomName();
    S3FileIO fileIO = new S3FileIO(clientFactory::s3);
    glueCatalog = new GlueCatalog();
    AwsProperties awsProperties = new AwsProperties();
    dynamo = clientFactory.dynamo();
    glueCatalog.initialize(catalogName, testBucketPath, awsProperties, glue, new DynamoDbLockManager(dynamo, lockTableName), fileIO);
}
Also used : AwsProperties(org.apache.iceberg.aws.AwsProperties) DynamoDbLockManager(org.apache.iceberg.aws.dynamodb.DynamoDbLockManager) S3FileIO(org.apache.iceberg.aws.s3.S3FileIO) BeforeClass(org.junit.BeforeClass)

Aggregations

AwsProperties (org.apache.iceberg.aws.AwsProperties)1 DynamoDbLockManager (org.apache.iceberg.aws.dynamodb.DynamoDbLockManager)1 S3FileIO (org.apache.iceberg.aws.s3.S3FileIO)1 BeforeClass (org.junit.BeforeClass)1