Skip to content

Commit

Permalink
Reapply "bump hadoop version (#33011)" (#33312)
Browse files Browse the repository at this point in the history
* Reapply "bump hadoop version (#33011)" (#33257)

This reverts commit 7e25649.

* Fix hbase and hcatalog test dependencies

* Add missing pinned hadoop dependency version for compat test target
  • Loading branch information
Abacn authored Dec 9, 2024
1 parent 0dae9c9 commit 85bff0d
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 13 deletions.
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
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@

* gcs-connector config options can be set via GcsOptions (Java) ([#32769](https://github.com/apache/beam/pull/32769)).
* Support for X source added (Java/Python) ([#X](https://github.com/apache/beam/issues/X)).
* Upgraded the default version of Hadoop dependencies to 3.4.1. Hadoop 2.10.2 is still supported (Java) ([#33011](https://github.com/apache/beam/issues/33011)).

## New Features / Improvements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ class BeamModulePlugin implements Plugin<Project> {
// [bomupgrader] determined by: io.grpc:grpc-netty, consistent with: google_cloud_platform_libraries_bom
def grpc_version = "1.67.1"
def guava_version = "33.1.0-jre"
def hadoop_version = "2.10.2"
def hadoop_version = "3.4.1"
def hamcrest_version = "2.1"
def influxdb_version = "2.19"
def httpclient_version = "4.5.13"
Expand Down
2 changes: 1 addition & 1 deletion sdks/java/io/hadoop-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def hadoopVersions = [
"2102": "2.10.2",
"324": "3.2.4",
"336": "3.3.6",
"341": "3.4.1",
// "341": "3.4.1", // tests already exercised on the default version
]

hadoopVersions.each {kv -> configurations.create("hadoopVersion$kv.key")}
Expand Down
2 changes: 1 addition & 1 deletion sdks/java/io/hadoop-file-system/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def hadoopVersions = [
"2102": "2.10.2",
"324": "3.2.4",
"336": "3.3.6",
"341": "3.4.1",
// "341": "3.4.1", // tests already exercised on the default version
]

hadoopVersions.each {kv -> configurations.create("hadoopVersion$kv.key")}
Expand Down
2 changes: 1 addition & 1 deletion sdks/java/io/hadoop-format/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def hadoopVersions = [
"2102": "2.10.2",
"324": "3.2.4",
"336": "3.3.6",
"341": "3.4.1",
// "341": "3.4.1", // tests already exercised on the default version
]

hadoopVersions.each {kv -> configurations.create("hadoopVersion$kv.key")}
Expand Down
9 changes: 2 additions & 7 deletions sdks/java/io/hbase/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test {
jvmArgs "-Dtest.build.data.basedirectory=build/test-data"
}

def hbase_version = "2.5.5"
def hbase_version = "2.6.1-hadoop3"

dependencies {
implementation library.java.vendored_guava_32_1_2_jre
Expand All @@ -46,12 +46,7 @@ dependencies {
testImplementation project(path: ":sdks:java:core", configuration: "shadowTest")
testImplementation library.java.junit
testImplementation library.java.hamcrest
testImplementation library.java.hadoop_minicluster
testImplementation library.java.hadoop_hdfs
testImplementation library.java.hadoop_common
// shaded-testing-utils has shaded all Hadoop/HBase dependencies
testImplementation("org.apache.hbase:hbase-shaded-testing-util:$hbase_version")
testImplementation "org.apache.hbase:hbase-hadoop-compat:$hbase_version:tests"
testImplementation "org.apache.hbase:hbase-hadoop2-compat:$hbase_version:tests"
testRuntimeOnly project(path: ":runners:direct-java", configuration: "shadow")
}

10 changes: 9 additions & 1 deletion sdks/java/io/hcatalog/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def hadoopVersions = [
"2102": "2.10.2",
"324": "3.2.4",
"336": "3.3.6",
"341": "3.4.1",
// "341": "3.4.1", // tests already exercised on the default version
]

hadoopVersions.each {kv -> configurations.create("hadoopVersion$kv.key")}
Expand Down Expand Up @@ -71,13 +71,21 @@ dependencies {
testRuntimeOnly project(path: ":runners:direct-java", configuration: "shadow")
hadoopVersions.each {kv ->
"hadoopVersion$kv.key" "org.apache.hadoop:hadoop-common:$kv.value"
"hadoopVersion$kv.key" "org.apache.hadoop:hadoop-hdfs:$kv.value"
"hadoopVersion$kv.key" "org.apache.hadoop:hadoop-hdfs-client:$kv.value"
"hadoopVersion$kv.key" "org.apache.hadoop:hadoop-mapreduce-client-core:$kv.value"
}
}

hadoopVersions.each {kv ->
configurations."hadoopVersion$kv.key" {
resolutionStrategy {
force "org.apache.hadoop:hadoop-client:$kv.value"
force "org.apache.hadoop:hadoop-common:$kv.value"
force "org.apache.hadoop:hadoop-mapreduce-client-core:$kv.value"
force "org.apache.hadoop:hadoop-minicluster:$kv.value"
force "org.apache.hadoop:hadoop-hdfs:$kv.value"
force "org.apache.hadoop:hadoop-hdfs-client:$kv.value"
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions sdks/java/io/iceberg/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,21 @@ dependencies {
testRuntimeOnly project(path: ":runners:google-cloud-dataflow-java")
hadoopVersions.each {kv ->
"hadoopVersion$kv.key" "org.apache.hadoop:hadoop-client:$kv.value"
"hadoopVersion$kv.key" "org.apache.hadoop:hadoop-minicluster:$kv.value"
"hadoopVersion$kv.key" "org.apache.hadoop:hadoop-hdfs-client:$kv.value"
"hadoopVersion$kv.key" "org.apache.hadoop:hadoop-mapreduce-client-core:$kv.value"
}
}

hadoopVersions.each {kv ->
configurations."hadoopVersion$kv.key" {
resolutionStrategy {
force "org.apache.hadoop:hadoop-client:$kv.value"
force "org.apache.hadoop:hadoop-common:$kv.value"
force "org.apache.hadoop:hadoop-mapreduce-client-core:$kv.value"
force "org.apache.hadoop:hadoop-minicluster:$kv.value"
force "org.apache.hadoop:hadoop-hdfs:$kv.value"
force "org.apache.hadoop:hadoop-hdfs-client:$kv.value"
}
}
}
Expand Down

0 comments on commit 85bff0d

Please sign in to comment.