From b777d3aa3d6837b8c2153b52c0eafcfc7d447486 Mon Sep 17 00:00:00 2001 From: Marek Novotny Date: Wed, 26 Jul 2023 13:18:41 +0200 Subject: [PATCH] Refactor usage of hadoop-mapreduce-client-core --- h2o-assemblies/main/build.gradle | 6 ++++++ h2o-parsers/h2o-parquet-parser/build.gradle | 3 +++ h2o-parsers/h2o-parquet-parser/parquet_dependencies.gradle | 3 --- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/h2o-assemblies/main/build.gradle b/h2o-assemblies/main/build.gradle index d96fa4baa2b8..6431b7d6550d 100644 --- a/h2o-assemblies/main/build.gradle +++ b/h2o-assemblies/main/build.gradle @@ -18,9 +18,15 @@ dependencies { api project(":h2o-persist-hdfs") api project(":h2o-ext-krbstandalone") api project(":h2o-parquet-parser") + api("org.apache.hadoop:hadoop-mapreduce-client-core:${defaultHadoopVersion}") { + transitive = false + } api project(":h2o-k8s-int") api "org.apache.hadoop:hadoop-hdfs-client:${defaultHadoopVersion}" + implementation("org.apache.hadoop:hadoop-mapreduce-client-core:${defaultHadoopVersion}") { + transitive = false + } api("org.apache.hadoop:hadoop-common:${defaultHadoopVersion}") { exclude group: "com.sun.jersey" exclude group: "javax.servlet" diff --git a/h2o-parsers/h2o-parquet-parser/build.gradle b/h2o-parsers/h2o-parquet-parser/build.gradle index 79d171bd5b5a..00a41816fd15 100644 --- a/h2o-parsers/h2o-parquet-parser/build.gradle +++ b/h2o-parsers/h2o-parquet-parser/build.gradle @@ -6,6 +6,9 @@ description = "H2O Parquet Parser" dependencies { testImplementation project(":h2o-test-support") testImplementation project(":h2o-parquet-parser-tests") + testImplementation("org.apache.hadoop:hadoop-mapreduce-client-core:${defaultHadoopVersion}") { + transitive = false + } testRuntimeOnly project(":${defaultWebserverModule}") } diff --git a/h2o-parsers/h2o-parquet-parser/parquet_dependencies.gradle b/h2o-parsers/h2o-parquet-parser/parquet_dependencies.gradle index 4abb69601464..3b174f8e10b5 100644 --- a/h2o-parsers/h2o-parquet-parser/parquet_dependencies.gradle +++ b/h2o-parsers/h2o-parquet-parser/parquet_dependencies.gradle @@ -29,7 +29,4 @@ dependencies { } } } - implementation("org.apache.hadoop:hadoop-mapreduce-client-core:${parquetHadoopVersion}") { - transitive = false - } }