diff --git a/.github/trigger_files/beam_PostCommit_Java_Hadoop_Versions.json b/.github/trigger_files/beam_PostCommit_Java_Hadoop_Versions.json index 8784d0786c02..53d94cfc4f1e 100644 --- a/.github/trigger_files/beam_PostCommit_Java_Hadoop_Versions.json +++ b/.github/trigger_files/beam_PostCommit_Java_Hadoop_Versions.json @@ -1,4 +1,4 @@ { "comment": "Modify this file in a trivial way to cause this test suite to run", - "modification": 2 + "modification": 3 } \ No newline at end of file diff --git a/sdks/java/io/hadoop-file-system/build.gradle b/sdks/java/io/hadoop-file-system/build.gradle index b4ebbfa08c5e..d78d6a300cac 100644 --- a/sdks/java/io/hadoop-file-system/build.gradle +++ b/sdks/java/io/hadoop-file-system/build.gradle @@ -72,6 +72,11 @@ hadoopVersions.each {kv -> force "org.apache.hadoop:hadoop-hdfs:$kv.value:tests" force "org.apache.hadoop:hadoop-hdfs-client:$kv.value:tests" force library.java.slf4j_jdk14 + if ("$kv.value" == "2.10.2" || "$kv.value" == "3.2.4") { + // Older Hadoop only works with older protobuf + force "com.google.protobuf:protobuf-java:3.25.5" + force "com.google.protobuf:protobuf-java-util:3.25.5" + } } } }