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

  1. Create a brand new Scala/sbt project

    • Use the one and only IntelliJ IDEA

    • Project name: spark-external-cluster-manager

  2. Add libraryDependencies for Spark 2.0.0 (RC5)

  3. ScalaTest

Hints

  1. The custom Cluster Manager should extend ExternalClusterManager

  2. 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?