Skip to content

Commit b853f5e

Browse files
committed
test
1 parent 668db8b commit b853f5e

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/client/IsolatedClientLoader.scala

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private[hive] object IsolatedClientLoader extends Logging {
121121
val hiveArtifacts = version.extraDeps ++
122122
Seq("hive-metastore", "hive-exec", "hive-common", "hive-serde")
123123
.map(a => s"org.apache.hive:$a:${version.fullVersion}") ++
124-
Seq("com.google.guava:guava:14.0.1") ++ hadoopJarNames
124+
Seq("com.google.guava:guava:14.0.1")
125125

126126
val extraExclusions = if (hadoopVersion.startsWith("3")) {
127127
// this introduced from lower version of Hive could conflict with jars in Hadoop 3.2+, so
@@ -131,15 +131,27 @@ private[hive] object IsolatedClientLoader extends Logging {
131131
Seq.empty
132132
}
133133

134-
val classpath = quietly {
134+
val hiveJarsClasspath = quietly {
135135
SparkSubmitUtils.resolveMavenCoordinates(
136136
hiveArtifacts.mkString(","),
137137
SparkSubmitUtils.buildIvySettings(
138138
Some(remoteRepos),
139139
ivyPath),
140140
exclusions = version.exclusions ++ extraExclusions)
141141
}
142-
val allFiles = classpath.split(",").map(new File(_)).toSet
142+
143+
val hadoopJarsClasspath = quietly {
144+
SparkSubmitUtils.resolveMavenCoordinates(
145+
hadoopJarNames.mkString(","),
146+
SparkSubmitUtils.buildIvySettings(
147+
Some(remoteRepos),
148+
ivyPath),
149+
exclusions = version.exclusions ++ extraExclusions)
150+
}
151+
152+
val allFiles =
153+
(hiveJarsClasspath.split(",") ++ hadoopJarsClasspath.split(","))
154+
.map(new File(_)).toSet
143155

144156
// TODO: Remove copy logic.
145157
val tempDir = Utils.createTempDir(namePrefix = s"hive-${version}")

sql/hive/src/main/scala/org/apache/spark/sql/hive/client/package.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ package object client {
103103
// Since HIVE-14496, Hive materialized view need calcite-core.
104104
// For spark, only VersionsSuite currently creates a hive materialized view for testing.
105105
case object v2_3 extends HiveVersion("2.3.7",
106-
extraDeps = Seq("org.apache.zookeeper:zookeeper:3.4.6"),
107106
exclusions = Seq("org.apache.calcite:calcite-druid",
108107
"org.apache.calcite.avatica:avatica",
109108
"org.apache.curator:*",

0 commit comments

Comments
 (0)