You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java: JDK, you can install it using asdf-java plugin.
bash, curl, tar: Generic POSIX utilities.
shasum: Verify archive checksum.
Environment Variables
ASDF_SPARK_HADOOP_VERSION: Set this environment variable to use custom hadoop version from the Spark archive download page, e.g. ASDF_SPARK_HADOOP_VERSION=3 asdf install spark 3.3.0. By default, this plugin will pick the latest hadoop version from the archive page if this environment variable is not being set.
ASDF_SPARK_WITHOUT_HADOOP: Set this environment variable to download spark binary archive without hadoop support, e.g. ASDF_SPARK_WITHOUT_HADOOP=1 asdf install spark 3.3.0. By default, this plugin will download spark archive with hadoop support if this environment variable is not being set.
ASDF_SPARK_SKIP_VERIFICATION: Set this environment variable to skip archive checksum verification step, e.g. ASDF_SPARK_SKIP_VERIFICATION=1 asdf install spark 3.3.0. By default, this plugin will verify the archive checksum if this environment variable is not being set.
# 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.