spark-exercise-custom-ExternalClusterManager
Goal
The goal of the exercise is to register a custom ExternalClusterManager
so scalania
master URL is supported and the following works:
$ ./bin/spark-shell --master scalania
Error: Master must either be yarn or start with spark, mesos, local
Run with --help for usage help or --verbose for debug output
Steps
Create a brand new Scala/sbt project
Use the one and only IntelliJ IDEA
Project name:
spark-external-cluster-manager
Add
libraryDependencies
for Spark 2.0.0 (RC5)ScalaTest
Follow Spark's own ExternalClusterManagerSuite
Hints
The custom Cluster Manager should extend ExternalClusterManager
The cluster manager support is loaded by ServiceLoader.load. See the code in Spark
Solution
See a complete Scala/sbt project in spark-external-cluster-manager. It is a work in progress work.
Last updated
Was this helpful?