Skip to content

Commit 875c54f

Browse files
witgotdas
authored andcommitted
[SPARK-1875]NoClassDefFoundError: StringUtils when building with hadoop 1.x and hive
Author: witgo <[email protected]> Closes #824 from witgo/SPARK-1875_commons-lang-2.6 and squashes the following commits: ef7231d [witgo] review commit ead3c3b [witgo] SPARK-1875:NoClassDefFoundError: StringUtils when building against Hadoop 1 (cherry picked from commit 6a2c5c6) Signed-off-by: Tathagata Das <[email protected]>
1 parent 00563e1 commit 875c54f

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

project/SparkBuild.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ object SparkBuild extends Build {
318318
val excludeFastutil = ExclusionRule(organization = "it.unimi.dsi")
319319
val excludeJruby = ExclusionRule(organization = "org.jruby")
320320
val excludeThrift = ExclusionRule(organization = "org.apache.thrift")
321-
val excludeCommonsLang = ExclusionRule(organization = "commons-lang")
322321
val excludeServletApi = ExclusionRule(organization = "javax.servlet", artifact = "servlet-api")
323322

324323
def sparkPreviousArtifact(id: String, organization: String = "org.apache.spark",
@@ -493,7 +492,7 @@ object SparkBuild extends Build {
493492
javaOptions += "-XX:MaxPermSize=1g",
494493
libraryDependencies ++= Seq(
495494
"org.spark-project.hive" % "hive-metastore" % hiveVersion,
496-
"org.spark-project.hive" % "hive-exec" % hiveVersion excludeAll(excludeCommonsLang, excludeCommonsLogging),
495+
"org.spark-project.hive" % "hive-exec" % hiveVersion excludeAll(excludeCommonsLogging),
497496
"org.spark-project.hive" % "hive-serde" % hiveVersion
498497
),
499498
// Multiple queries rely on the TestHive singleton. See comments there for more details.

sql/hive/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@
5656
<groupId>commons-logging</groupId>
5757
<artifactId>commons-logging</artifactId>
5858
</exclusion>
59-
<exclusion>
60-
<groupId>commons-lang</groupId>
61-
<artifactId>commons-lang</artifactId>
62-
</exclusion>
6359
</exclusions>
6460
</dependency>
6561
<dependency>
@@ -79,10 +75,6 @@
7975
<groupId>commons-logging</groupId>
8076
<artifactId>commons-logging-api</artifactId>
8177
</exclusion>
82-
<exclusion>
83-
<groupId>commons-lang</groupId>
84-
<artifactId>commons-lang</artifactId>
85-
</exclusion>
8678
</exclusions>
8779
</dependency>
8880
<!-- hive-serde already depends on avro, but this brings in customized config of avro deps from parent -->

0 commit comments

Comments
 (0)