Skip to content

Commit

Permalink
create it/iceberg and first hive load test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedabu98 committed Jan 22, 2025
1 parent 607fd43 commit 8693e5b
Show file tree
Hide file tree
Showing 11 changed files with 840 additions and 85 deletions.
80 changes: 80 additions & 0 deletions it/iceberg/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.beam.gradle.IoPerformanceTestUtilities

plugins { id 'org.apache.beam.module' }
applyJavaNature(
automaticModuleName: 'org.apache.beam.it.iceberg',
exportJavadoc: false,
)

description = "Apache Beam :: IT :: Iceberg"
ext.summary = "Integration test utilities for Iceberg."

dependencies {
implementation library.java.testcontainers_base
implementation project(path: ":it:testcontainers")
implementation library.java.testcontainers_kafka
implementation library.java.kafka_clients


implementation library.java.slf4j_api
implementation library.java.vendored_guava_32_1_2_jre
implementation project(path: ":it:common")
testImplementation project(path: ":it:google-cloud-platform")
testImplementation project(path: ":sdks:java:io:synthetic")
testImplementation project(path: ":sdks:java:managed")

testImplementation project(path: ":sdks:java:io:iceberg")
testRuntimeOnly project(path: ":sdks:java:io:iceberg:bqms", configuration: "shadow")
testImplementation project(path: ":sdks:java:io:iceberg:hive:testing")
testRuntimeOnly library.java.hadoop_auth
testRuntimeOnly library.java.hadoop_client
testRuntimeOnly library.java.bigdataoss_gcs_connector

testImplementation project(path: ":runners:direct-java")
testImplementation project(path: ":runners:google-cloud-dataflow-java")
testImplementation project(path: ":sdks:java:testing:test-utils")
testImplementation project(path: ":sdks:java:extensions:google-cloud-platform-core", configuration: "testRuntimeMigration")
testImplementation library.java.google_api_services_dataflow
}

tasks.register(
"IcebergHiveLoadTestMedium", IoPerformanceTestUtilities.IoPerformanceTest, project, 'iceberg', 'IcebergIOHiveST',
['configuration':'medium','project':'apache-beam-testing', 'artifactBucket':'io-performance-temp']
+ System.properties
)

//tasks.register(
// "IcebergBQMSLoadTestMedium", IoPerformanceTestUtilities.IoPerformanceTest, project, 'iceberg', 'IcebergBigQueryMetastoreLT',
// ['configuration':'medium','project':'apache-beam-testing', 'artifactBucket':'io-performance-temp']
// + System.properties
//)
//
//tasks.register(
// "IcebergHiveLoadTestLarge", IoPerformanceTestUtilities.IoPerformanceTest, project, 'iceberg', 'IcebergHiveLT',
// ['configuration':'large','project':'apache-beam-testing', 'artifactBucket':'io-performance-temp']
// + System.properties
//)
//
//tasks.register(
// "IcebergBQMSLoadTestLarge", IoPerformanceTestUtilities.IoPerformanceTest, project, 'iceberg', 'IcebergBigQueryMetastoreLT',
// ['configuration':'large','project':'apache-beam-testing', 'artifactBucket':'io-performance-temp']
// + System.properties
//)

24 changes: 24 additions & 0 deletions it/iceberg/src/main/java/org/apache/beam/it/iceberg/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.beam.it.iceberg;

public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
Loading

0 comments on commit 8693e5b

Please sign in to comment.