Skip to content

Commit c2ec1f8

Browse files
committed
address comments
1 parent 6b57ccc commit c2ec1f8

File tree

4 files changed

+2
-16
lines changed

4 files changed

+2
-16
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
<datanucleus-javax.jdo-version>3.2.0-m3</datanucleus-javax.jdo-version>
188188
<javax.jdo.version>3.0.1</javax.jdo.version>
189189
<stax-api.version>1.0.1</stax-api.version>
190+
<!-- NOTE: make sure to update SparkBuild.scala whenever Guava version changes -->
190191
<guava.version>30.1.1-jre</guava.version>
191192
<hive.guava.version>14.0.1</hive.guava.version>
192193
<janino.version>3.0.16</janino.version>

project/SparkBuild.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ object KubernetesIntegrationTests {
667667
* Overrides to work around sbt's dependency resolution being different from Maven's.
668668
*/
669669
object DependencyOverrides {
670-
lazy val guavaVersion = sys.props.get("guava.version").getOrElse("14.0.1")
670+
lazy val guavaVersion = sys.props.get("guava.version").getOrElse("30.1.1-jre")
671671
lazy val settings = Seq(
672672
dependencyOverrides += "com.google.guava" % "guava" % guavaVersion,
673673
dependencyOverrides += "xerces" % "xercesImpl" % "2.12.0",

sql/hive-shaded/pom.xml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,57 +34,47 @@
3434
<sbt.project.name>hive-shaded</sbt.project.name>
3535
</properties>
3636

37-
<!-- dependencies in the following are optional because we don't want to leak them as
38-
transitive dependencies, as they are already included in the shaded jar -->
3937
<dependencies>
4038
<dependency>
4139
<groupId>${hive.group}</groupId>
4240
<artifactId>hive-common</artifactId>
4341
<scope>${hive.common.scope}</scope>
44-
<optional>true</optional>
4542
</dependency>
4643
<dependency>
4744
<groupId>${hive.group}</groupId>
4845
<artifactId>hive-exec</artifactId>
4946
<classifier>${hive.classifier}</classifier>
50-
<optional>true</optional>
5147
</dependency>
5248
<dependency>
5349
<groupId>${hive.group}</groupId>
5450
<artifactId>hive-metastore</artifactId>
55-
<optional>true</optional>
5651
</dependency>
5752
<dependency>
5853
<groupId>${hive.group}</groupId>
5954
<artifactId>hive-serde</artifactId>
6055
<scope>${hive.serde.scope}</scope>
61-
<optional>true</optional>
6256
</dependency>
6357
<dependency>
6458
<groupId>${hive.group}</groupId>
6559
<artifactId>hive-shims</artifactId>
6660
<scope>${hive.shims.scope}</scope>
67-
<optional>true</optional>
6861
</dependency>
6962
<dependency>
7063
<groupId>org.apache.hive</groupId>
7164
<artifactId>hive-llap-common</artifactId>
7265
<scope>${hive.llap.scope}</scope>
73-
<optional>true</optional>
7466
</dependency>
7567
<dependency>
7668
<groupId>org.apache.hive</groupId>
7769
<artifactId>hive-llap-client</artifactId>
7870
<scope>${hive.llap.scope}</scope>
79-
<optional>true</optional>
8071
</dependency>
8172
<!-- re-import guava here since it's declared as provided in parent pom -->
8273
<dependency>
8374
<groupId>com.google.guava</groupId>
8475
<artifactId>guava</artifactId>
8576
<version>${hive.guava.version}</version>
8677
<scope>compile</scope>
87-
<optional>true</optional>
8878
</dependency>
8979
</dependencies>
9080

@@ -95,22 +85,18 @@
9585
<dependency>
9686
<groupId>${hive.group}</groupId>
9787
<artifactId>hive-cli</artifactId>
98-
<optional>true</optional>
9988
</dependency>
10089
<dependency>
10190
<groupId>${hive.group}</groupId>
10291
<artifactId>hive-jdbc</artifactId>
103-
<optional>true</optional>
10492
</dependency>
10593
<dependency>
10694
<groupId>${hive.group}</groupId>
10795
<artifactId>hive-beeline</artifactId>
108-
<optional>true</optional>
10996
</dependency>
11097
<dependency>
11198
<groupId>${hive.group}</groupId>
11299
<artifactId>hive-service-rpc</artifactId>
113-
<optional>true</optional>
114100
</dependency>
115101
</dependencies>
116102
</profile>

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ private[hive] class IsolatedClientLoader(
202202
name.startsWith("org.apache.spark.") ||
203203
isHadoopClass ||
204204
name.startsWith("scala.") ||
205-
(name.startsWith("com.google") && !name.startsWith("com.google.cloud")) ||
206205
name.startsWith("java.") ||
207206
name.startsWith("javax.sql.") ||
208207
sharedPrefixes.exists(name.startsWith)

0 commit comments

Comments
 (0)