-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add a new IO named DataLakeIO (#23074) #23075
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# See the OWNERS docs at https://s.apache.org/beam-owners | ||
|
||
reviewers: | ||
- mcasters | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
plugins { id 'org.apache.beam.module' } | ||
applyJavaNature(automaticModuleName: 'org.apache.beam.sdk.io.datalake') | ||
provideIntegrationTestingDependencies() | ||
enableJavaPerformanceTesting() | ||
|
||
description = "Apache Beam :: SDKs :: Java :: IO :: Datalake" | ||
ext.summary = "IO to read from and write to Data Lake" | ||
|
||
dependencies { | ||
implementation project(path: ":sdks:java:core", configuration: "shadow") | ||
// implementation library.java.slf4j_api | ||
implementation library.java.vendored_guava_26_0_jre | ||
implementation "org.apache.spark:spark-sql_2.12:3.1.2" | ||
implementation "org.apache.spark:spark-core_2.12:3.1.2" | ||
implementation "org.apache.spark:spark-streaming_2.12:3.1.2" | ||
Comment on lines
+31
to
+33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This IO would be really neat and I understand the motivation of using Spark underneath. There's also a Spark runner, which supports both Spark 2.4 and Spark >= 3.1. This IO would certainly conflict with the Spark 2.4 runner. The Spark 3 runner is build in a way that it supports various versions of Spark 3 (the path from 3.1 to 3.3 is full of breaking changes), Spark dependencies are typically provided (as available on the cluster). Even further, Spark comes with a massive tail of dependencies prone to causing conflicts with versions used in Beam. The one common candidate to mention here is Avro. Spark 3.1 is still using Avro 1.8 matching Beam's version, Spark 3.2 bumps Avro to 1.10 which is incompatible with Beam :/ This kinda exemplifies the maintenance headache ahead. Have you evaluated any alternative to using Spark underneath? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Your advice is great ! I'll consider it, and then think about other alternatives |
||
|
||
testImplementation "io.delta:delta-core_2.12:1.0.0" | ||
|
||
testImplementation "org.apache.iceberg:iceberg-spark-runtime-3.1_2.12:0.14.0" | ||
testImplementation "org.apache.spark:spark-hive_2.12:3.1.2" //iceberg need | ||
|
||
testImplementation "org.apache.hudi:hudi-spark3.1-bundle_2.12:0.12.0" | ||
testImplementation "org.apache.hudi:hudi-client-common:0.12.0" | ||
testImplementation "org.apache.hudi:hudi-java-client:0.12.0" | ||
testImplementation "org.apache.hudi:hudi-common:0.12.0" | ||
testImplementation "org.apache.commons:commons-lang3:3.12.0" | ||
testImplementation "com.fasterxml.jackson.core:jackson-annotations:2.12.3" | ||
implementation "io.javalin:javalin:2.8.0" | ||
|
||
testImplementation library.java.junit | ||
testImplementation library.java.hamcrest | ||
testImplementation project(path: ":sdks:java:io:common", configuration: "testRuntimeMigration") | ||
testImplementation project(path: ":sdks:java:testing:test-utils", configuration: "testRuntimeMigration") | ||
// testRuntimeOnly library.java.slf4j_jdk14 | ||
testRuntimeOnly project(path: ":runners:direct-java", configuration: "shadow") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you re-work these dependencies to match the pattern used for other IOs? See io/google-cloud-platform/build.gradel for an example.
New dependencies themselves are included buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'll modify it according to this