Created
August 29, 2019 20:12
-
-
Save jeff303/c28421b864c19d2d6b775deffee3a0bf to your computer and use it in GitHub Desktop.
Print installed Apache Spark version to stdout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
echo 'System.out.println(sc.version)' | spark-shell 2>/dev/null | grep -A2 'System.out.println' | grep -v 'System.out.println' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Relies on
spark-shell
being onPATH
.