Skip to content

Commit 3838dfe

Browse files
committed
Fix YarnClusterSuite.yarn-cluster should respect conf overrides in SparkHadoopUtil
1 parent edeecad commit 3838dfe

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,18 @@
372372
<artifactId>junit-interface</artifactId>
373373
<scope>test</scope>
374374
</dependency>
375+
<!--
376+
Hack to exclude org.apache.hadoop:hadoop-yarn-server-resourcemanager:jar:tests.
377+
For some reasons, SBT starts to pull the dependencies of 'hadoop-yarn-server-tests' above
378+
with 'tests' classifier after upgrading SBT 1.3 (SPARK-21708). Otherwise, some tests might
379+
fail, see also SPARK-33104.
380+
-->
381+
<dependency>
382+
<groupId>org.apache.hadoop</groupId>
383+
<artifactId>hadoop-yarn-server-resourcemanager</artifactId>
384+
<version>${yarn.version}</version>
385+
<scope>test</scope>
386+
</dependency>
375387
</dependencies>
376388
<dependencyManagement>
377389
<dependencies>
@@ -1399,6 +1411,10 @@
13991411
<groupId>com.sun.jersey.contribs</groupId>
14001412
<artifactId>*</artifactId>
14011413
</exclusion>
1414+
<exclusion>
1415+
<groupId>org.apache.hadoop</groupId>
1416+
<artifactId>hadoop-yarn-server-resourcemanager</artifactId>
1417+
</exclusion>
14021418
</exclusions>
14031419
</dependency>
14041420
<dependency>

0 commit comments

Comments
 (0)