I installed scala and apache-spark using homebrew and it installed scala 2.12.4 and apache-spark 2.2.0. However, if you checkout spark-shell -version
it uses a different scala version.
How do I set spark-shell to use the installed scala version? Is there way to set scala version used by apache-spark during homebrew installation?