-
Notifications
You must be signed in to change notification settings - Fork 4.6k
CherryPick: Fix Iceberg hadoopIO dep failure #38502
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
Changes from all commits
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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| "comment": "Modify this file in a trivial way to cause this test suite to run.", | ||
| "modification": 1 | ||
| "modification": 2 | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| "comment": "Modify this file in a trivial way to cause this test suite to run.", | ||
| "modification": 1 | ||
| "modification": 2 | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,7 +59,7 @@ dependencies { | |
| implementation "org.apache.iceberg:iceberg-parquet:$iceberg_version" | ||
| implementation "org.apache.iceberg:iceberg-orc:$iceberg_version" | ||
| implementation "org.apache.iceberg:iceberg-data:$iceberg_version" | ||
| implementation library.java.hadoop_common | ||
| implementation "org.apache.hadoop:hadoop-common:3.3.6" | ||
|
Contributor
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. The dependency |
||
| // TODO(https://github.com/apache/beam/issues/21156): Determine how to build without this dependency | ||
| provided "org.immutables:value:2.8.8" | ||
| permitUnusedDeclared "org.immutables:value:2.8.8" | ||
|
|
@@ -70,6 +70,7 @@ dependencies { | |
| runtimeOnly "org.apache.iceberg:iceberg-azure:$iceberg_version" | ||
| runtimeOnly "org.apache.iceberg:iceberg-azure-bundle:$iceberg_version" | ||
| runtimeOnly library.java.bigdataoss_gcs_connector | ||
| runtimeOnly library.java.bigdataoss_util_hadoop | ||
| runtimeOnly library.java.hadoop_client | ||
|
|
||
| testImplementation project(":sdks:java:managed") | ||
|
|
@@ -117,6 +118,14 @@ dependencies { | |
| configurations.all { | ||
| // iceberg-core needs avro:1.12.0 | ||
| resolutionStrategy.force 'org.apache.avro:avro:1.12.0' | ||
| // bigdataoss:gcs-connector and parquet:parquet-hadoop have conflicts with global hadoop-common:3.4.2 | ||
| // upgrading gcs-connector to 4.0.0 would be fine, because it uses hadoop-common 3.4.2 | ||
| // but parquet-hadoop is still at 3.3.0 | ||
| // so for now we need to pin hadoop to 3.3.6 until parquet-hadoop releases a version that uses hadoop 3.4.2+ | ||
| resolutionStrategy.force 'org.apache.hadoop:hadoop-common:3.3.6' | ||
| resolutionStrategy.force 'org.apache.hadoop:hadoop-client:3.3.6' | ||
| resolutionStrategy.force 'org.apache.hadoop:hadoop-hdfs:3.3.6' | ||
| resolutionStrategy.force 'org.apache.hadoop:hadoop-hdfs-client:3.3.6' | ||
| } | ||
|
|
||
| hadoopVersions.each {kv -> | ||
|
|
||
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.
This block of version pinning and the accompanying comment are duplicated in
sdks/java/io/iceberg/build.gradle. To improve maintainability and ensure that this temporary override is managed in one place, consider defining the Hadoop version as a variable in a central location (e.g.,BeamModulePluginor a project-level property) and referencing it in both files.