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

The curl command in sbt-launch-lib.bash doesn't download sbt-launch jar

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.4.1
    • None
    • Build
    • None
    • Ubuntu 13.10

    Description

      I try to build spark by using the command ./build/sbt

      I get the following error -
      Attempting to fetch sbt
      Launching sbt from build/sbt-launch-0.13.7.jar
      Error: Invalid or corrupt jarfile build/sbt-launch-0.13.7.jar

      I debugged and found out that URL1 repo is outdated. So it's giving 404. The problem I found with the curl script is that it didn't tried the URL2

      Also the ULR2 is now being redirected. So the curl command should have -L option to follow redirect.

      To fix:
      1. curl should try URL2 if URL1 is not working
      2. use -L option in curl to follow rediect

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vishaljohn Vishal John
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: