aboutsummaryrefslogtreecommitdiff
path: root/common/network-common/pom.xml
diff options
context:
space:
mode:
authorThomas Graves <tgraves@staydecay.corp.gq1.yahoo.com>2016-09-02 10:42:13 -0700
committerMarcelo Vanzin <vanzin@cloudera.com>2016-09-02 10:42:13 -0700
commite79962f2f3955485aecf32939207d8ee6ccd2704 (patch)
treeb2d3bdc02246f2293e8006d00c4b9af3c78e54d6 /common/network-common/pom.xml
parent419eefd811a4e29a73bc309157f150751e478db5 (diff)
downloadspark-e79962f2f3955485aecf32939207d8ee6ccd2704.tar.gz
spark-e79962f2f3955485aecf32939207d8ee6ccd2704.tar.bz2
spark-e79962f2f3955485aecf32939207d8ee6ccd2704.zip
[SPARK-16711] YarnShuffleService doesn't re-init properly on YARN rolling upgrade
The Spark Yarn Shuffle Service doesn't re-initialize the application credentials early enough which causes any other spark executors trying to fetch from that node during a rolling upgrade to fail with "java.lang.NullPointerException: Password cannot be null if SASL is enabled". Right now the spark shuffle service relies on the Yarn nodemanager to re-register the applications, unfortunately this is after we open the port for other executors to connect. If other executors connected before the re-register they get a null pointer exception which isn't a re-tryable exception and cause them to fail pretty quickly. To solve this I added another leveldb file so that it can save and re-initialize all the applications before opening the port for other executors to connect to it. Adding another leveldb was simpler from the code structure point of view. Most of the code changes are moving things to common util class. Patch was tested manually on a Yarn cluster with rolling upgrade was happing while spark job was running. Without the patch I consistently get the NullPointerException, with the patch the job gets a few Connection refused exceptions but the retries kick in and the it succeeds. Author: Thomas Graves <tgraves@staydecay.corp.gq1.yahoo.com> Closes #14718 from tgravescs/SPARK-16711.
Diffstat (limited to 'common/network-common/pom.xml')
-rw-r--r--common/network-common/pom.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/common/network-common/pom.xml b/common/network-common/pom.xml
index 81f0c6e226..fcefe64d59 100644
--- a/common/network-common/pom.xml
+++ b/common/network-common/pom.xml
@@ -45,6 +45,22 @@
<artifactId>commons-lang3</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.fusesource.leveldbjni</groupId>
+ <artifactId>leveldbjni-all</artifactId>
+ <version>1.8</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-annotations</artifactId>
+ </dependency>
+
<!-- Provided dependencies -->
<dependency>
<groupId>org.slf4j</groupId>