Enables use of Hazelcast for Spark High Availability
- Spark 1.6.2: http://spark.apache.org/downloads.html
- Hazelcast 3.7: https://hazelcast.org/download/
- Clone the repo and run
./gradlew build shadow
- Include this jar on the Spark Master classpath by modify
conf/spark-env.sh
to include the jar from step 1
export SPARK_CLASSPATH=/Users/mtamayo/repos/kryptnostic/hazelcast-spark-ha/build/libs/hazelcast-spark-ha-all.jar
- Configure the following lines in
conf/spark-defaults.conf
with the appropriate values for your setup.
spark.deploy.recoveryMode CUSTOM
spark.deploy.recoveryMode.factory com.kryptnostic.sparks.HazelcastRecoveryModeFactory
com.kryptnostic.hazelcast.nodes <host1:port1,host2:port2>