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. ScalaTest

Hints

  1. The custom Cluster Manager should extend ExternalClusterManagerarrow-up-right

  2. The cluster manager support is loaded by ServiceLoader.loadarrow-up-right. See the code in Sparkarrow-up-right

Solution

See a complete Scala/sbt project in spark-external-cluster-managerarrow-up-right. It is a work in progress work.

Last updated