Skip to content

Commit 1cb2979

Browse files
committed
feat: upgrade Hadoop and GCS dependencies, enhance test configuration
- Upgraded Hadoop to 3.4.2 and GCS connector dependencies to 4.0.4. - Added `hadoopClientRuntime` dependency for improved client functionality. - Configured Gradle test tasks with increased heap size (`minHeapSize` and `maxHeapSize`). - Updated JVM arguments in `gradle.properties` for consistent memory allocation.
1 parent 752ef0d commit 1cb2979

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

example/spark/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ dependencies {
2727
testImplementation(libs.sparkAvro)
2828
testImplementation(libs.hadoopAws)
2929
testImplementation(libs.hadoopClientApi)
30+
testImplementation(libs.hadoopClientRuntime)
3031
testImplementation(libs.icebergSparkRuntime)
3132
testImplementation(libs.icebergAwsBundle)
3233
testImplementation(libs.gcsConnector)
@@ -42,6 +43,8 @@ dependencies {
4243

4344

4445
tasks.withType<Test>().configureEach {
46+
minHeapSize = "2048m"
47+
maxHeapSize = "8192m"
4548
jvmArgs(
4649
"--add-exports=java.base/sun.nio.ch=ALL-UNNAMED",
4750
"--add-opens=java.base/java.nio=ALL-UNNAMED",

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ kotlin.code.style=official
44

55
org.gradle.caching=true
66
org.gradle.configuration-cache=true
7-
org.gradle.configuration-cache.problems=warn
7+
org.gradle.configuration-cache.problems=warn
8+
9+
org.gradle.jvmargs=-Xmx8192M

gradle/libs.versions.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ kotlinxCoroutines = "1.10.2"
1010
springBoot = "4.0.5"
1111
testcontainers = "2.0.4"
1212
spark = "3.5.7"
13-
hadoop = "3.3.6"
13+
hadoop = "3.4.2"
14+
1415
junitJupiter = "5.14.1"
1516
junitPlatform = "1.14.1"
1617
iceberg = "1.11.0"
1718
confluent = "8.2.1"
1819
avro = "1.12.1"
19-
gcsConnector = "3.1.17"
20-
gcsio = "3.1.17"
20+
gcsConnector = "4.0.4"
21+
gcsio = "4.0.4"
2122

2223
[libraries]
2324
kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
@@ -36,6 +37,8 @@ sparkHive = { module = "org.apache.spark:spark-hive_2.12", version.ref = "spark"
3637
sparkSqlKafka = { module = "org.apache.spark:spark-sql-kafka-0-10_2.12", version.ref = "spark" }
3738
hadoopAws = { module = "org.apache.hadoop:hadoop-aws", version.ref = "hadoop" }
3839
hadoopClientApi = { module = "org.apache.hadoop:hadoop-client-api", version.ref = "hadoop" }
40+
hadoopClientRuntime = { module = "org.apache.hadoop:hadoop-client-runtime", version.ref = "hadoop" }
41+
3942

4043
sparkAvro = { module = "org.apache.spark:spark-avro_2.12", version.ref = "spark" }
4144
icebergSparkRuntime = { module = "org.apache.iceberg:iceberg-spark-runtime-3.5_2.12", version.ref = "iceberg" }

0 commit comments

Comments
 (0)