Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark Plugins

This repository contains an example Spark plugin written in Scala and built with sbt.

The plugin implements the SparkPlugin interface to demonstrate driver and executor lifecycle hooks.

Testing

This project uses the spark-testing-base framework for unit tests. Run them with:

sbt test

Building

Run the following command to build the plugin JAR:

sbt package

The resulting artifact will be found under target/scala-2.12/.

Usage

Include the plugin JAR on Spark's classpath and specify the plugin via spark.plugins:

spark-submit \
  --conf "spark.plugins=com.example.plugin.ExampleSparkPlugin" \
  --class your.MainClass your-app.jar

When enabled, the plugin prints simple log messages during initialization and shutdown on both the driver and executors.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages