@@ -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}" )
0 commit comments