spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCune (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-19769) Quickstart self-contained application instructions do not work with current sbt
Date Tue, 28 Feb 2017 15:16:45 GMT
Michael McCune created SPARK-19769:
--------------------------------------

             Summary: Quickstart self-contained application instructions do not work with
current sbt
                 Key: SPARK-19769
                 URL: https://issues.apache.org/jira/browse/SPARK-19769
             Project: Spark
          Issue Type: Documentation
          Components: Documentation
    Affects Versions: 2.1.0
            Reporter: Michael McCune
            Priority: Trivial


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:

{noformat}
$ 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
{noformat}

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

{noformat}
$ 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
{noformat}

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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message