GitHub user gengliangwang opened a pull request: https://github.com/apache/spark/pull/23049
[SPARK-26076][Build] Revise ambiguous error message from load-spark-env.sh ## What changes were proposed in this pull request? When I try to run scripts (e.g. `./sbin/start-history-server.sh -h` in latest master, I got such error: ``` Presence of build for multiple Scala versions detected. Either clean one of them or, export SPARK_SCALA_VERSION in spark-env.sh. ``` The error message is quite confusing and there is no `spark-env.sh` in our code base. As now with https://github.com/apache/spark/pull/22967, we can revise the error message as following: ``` Presence of build for both scala versions(SCALA 2.11 and SCALA 2.12) detected. Either clean one of them or, export SPARK_SCALA_VERSION=2.12 in load-spark-env.sh. ## How was this patch tested? Manual test You can merge this pull request into a Git repository by running: $ git pull https://github.com/gengliangwang/spark reviseEnvScript Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/23049.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #23049 ---- commit bf94264a3e037e00a7b7111a677467de980071c9 Author: Gengliang Wang <gengliang.wang@...> Date: 2018-11-15T15:43:44Z fix ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org