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

Quickstart self-contained application instructions do not work with current sbt

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.1.0
    • 2.0.3, 2.1.1, 2.2.0
    • Documentation
    • None

    Description

      The current quickstart instructions for the "Self-Contained Applications" instructs the user to create a file named simple.sbt to instruct the build tooling. With current versions of sbt(ie 1.0) however, the tooling does not recognize the simple.sbt file as it is looking for a file named build.sbt.

      When following the quickstart instructions, I see the following output:

      $ find .
      .
      ./simple.sbt
      ./src
      ./src/main
      ./src/main/scala
      ./src/main/scala/SimpleApp.scala
      [mike@ultra] master ~/workspace/sandbox/SimpleApp
      $ sbt package
      /home/mike/workspace/sandbox/SimpleApp doesn't appear to be an sbt project.
      If you want to start sbt anyway, run:
        /home/mike/bin/sbt -sbt-create
      

      Changing the filename to build.sbt produces a valid build:

      $ mv simple.sbt build.sbt
      [mike@ultra] master ~/workspace/sandbox/SimpleApp
      $ sbt package
      [info] Set current project to Simple Project (in build file:/home/mike/workspace/sandbox/SimpleApp/)
      [info] Updating {file:/home/mike/workspace/sandbox/SimpleApp/}simpleapp...
      [info] Resolving jline#jline;2.12.1 ...
      [info] Done updating.
      [info] Compiling 1 Scala source to /home/mike/workspace/sandbox/SimpleApp/target/scala-2.11/classes...
      [info] Packaging /home/mike/workspace/sandbox/SimpleApp/target/scala-2.11/simple-project_2.11-1.0.jar ...
      [info] Done packaging.
      [success] Total time: 10 s, completed Feb 28, 2017 10:01:58 AM
      

      I think the documentation just needs to be changed to reflect the new filename.

      Attachments

        Activity

          People

            elmiko Michael McCune
            elmiko Michael McCune
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: