Home

Awesome

<div align="center">

asdf-spark Build Lint

Apache Spark plugin for the asdf version manager.

</div>

Contents

Dependencies

Environment Variables

Install

Plugin:

asdf plugin add spark https://github.com/jeffryang24/asdf-spark.git
# or
asdf plugin add spark git@github.com:jeffryang24/asdf-spark.git

spark:

# Show all installable versions
asdf list-all spark

# Install specific version
asdf install spark latest

# Set a version globally (on your ~/.tool-versions file)
asdf global spark latest

# Now spark commands are available
spark-shell --help

Check asdf readme for more instructions on how to install & manage versions.

FAQ

How to set SPARK_HOME environment variable?

You can set SPARK_HOME environment variable inside your shell configuration file. Currently, this plugin only supports bash and zsh shells. Please note that you must place below scripts after sourcing the asdf-vm since these scripts require asdf where command.

For zsh, please add this script inside your .zshrc file.

source ~/.asdf/plugins/spark/set-spark-home.zsh

For bash, please add this script inside your .bashrc file.

source ~/.asdf/plugins/spark/set-spark-home.bash

Contributing

Contributions of any kind welcome! See the contributing guide.

Thanks goes to these contributors!

License

Licensed under Apache License 2.0.