Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26076

Revise ambiguous error message from load-spark-env.sh

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • Build
    • None

    Description

      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.
      ```

      Attachments

        Activity

          People

            Gengliang.Wang Gengliang Wang
            Gengliang.Wang Gengliang Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: