Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit 1e82990

Browse files
tgravescspwendell
authored andcommitted
SPARK-1474: Spark on yarn assembly doesn't include AmIpFilter
We use org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter in spark on yarn but are not included it in the assembly jar. I tested this on yarn cluster by removing the yarn jars from the classpath and spark runs fine now. Author: Thomas Graves <tgraves@apache.org> Closes #406 from tgravescs/SPARK-1474 and squashes the following commits: 1548bf9 [Thomas Graves] SPARK-1474: Spark on yarn assembly doesn't include org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter
1 parent 0a5a468 commit 1e82990

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

pom.xml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,25 @@
616616
</exclusion>
617617
</exclusions>
618618
</dependency>
619-
619+
<dependency>
620+
<groupId>org.apache.hadoop</groupId>
621+
<artifactId>hadoop-yarn-server-web-proxy</artifactId>
622+
<version>${yarn.version}</version>
623+
<exclusions>
624+
<exclusion>
625+
<groupId>asm</groupId>
626+
<artifactId>asm</artifactId>
627+
</exclusion>
628+
<exclusion>
629+
<groupId>org.ow2.asm</groupId>
630+
<artifactId>asm</artifactId>
631+
</exclusion>
632+
<exclusion>
633+
<groupId>org.jboss.netty</groupId>
634+
<artifactId>netty</artifactId>
635+
</exclusion>
636+
</exclusions>
637+
</dependency>
620638
<dependency>
621639
<groupId>org.apache.hadoop</groupId>
622640
<artifactId>hadoop-yarn-client</artifactId>
@@ -958,6 +976,11 @@
958976
<artifactId>hadoop-yarn-common</artifactId>
959977
<scope>provided</scope>
960978
</dependency>
979+
<dependency>
980+
<groupId>org.apache.hadoop</groupId>
981+
<artifactId>hadoop-yarn-server-web-proxy</artifactId>
982+
<scope>provided</scope>
983+
</dependency>
961984
<dependency>
962985
<groupId>org.apache.hadoop</groupId>
963986
<artifactId>hadoop-yarn-client</artifactId>

project/SparkBuild.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,8 @@ object SparkBuild extends Build {
563563
"org.apache.hadoop" % hadoopClient % hadoopVersion excludeAll(excludeNetty, excludeAsm, excludeOldAsm),
564564
"org.apache.hadoop" % "hadoop-yarn-api" % hadoopVersion excludeAll(excludeNetty, excludeAsm, excludeOldAsm),
565565
"org.apache.hadoop" % "hadoop-yarn-common" % hadoopVersion excludeAll(excludeNetty, excludeAsm, excludeOldAsm),
566-
"org.apache.hadoop" % "hadoop-yarn-client" % hadoopVersion excludeAll(excludeNetty, excludeAsm, excludeOldAsm)
566+
"org.apache.hadoop" % "hadoop-yarn-client" % hadoopVersion excludeAll(excludeNetty, excludeAsm, excludeOldAsm),
567+
"org.apache.hadoop" % "hadoop-yarn-server-web-proxy" % hadoopVersion excludeAll(excludeNetty, excludeAsm, excludeOldAsm)
567568
)
568569
)
569570

yarn/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
<groupId>org.apache.hadoop</groupId>
4444
<artifactId>hadoop-yarn-common</artifactId>
4545
</dependency>
46+
<dependency>
47+
<groupId>org.apache.hadoop</groupId>
48+
<artifactId>hadoop-yarn-server-web-proxy</artifactId>
49+
</dependency>
4650
<dependency>
4751
<groupId>org.apache.hadoop</groupId>
4852
<artifactId>hadoop-yarn-client</artifactId>

0 commit comments

Comments
 (0)