Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify where to run sbt package from in Exercise 5 #3

Open
willfurnass opened this issue Feb 15, 2017 · 0 comments
Open

Clarify where to run sbt package from in Exercise 5 #3

willfurnass opened this issue Feb 15, 2017 · 0 comments

Comments

@willfurnass
Copy link
Contributor

willfurnass commented Feb 15, 2017

If you run it from the wrong place then unfortunately sbt still builds something and doesn't present a sensible error:

[will@mybox ~]$ mkdir someemptydir
[will@v ~]$ cd someemptydir
[will@mybox someemptydir]$ sbt package
[info] Set current project to someemptydir (in build file:/home/will/someemptydir/)
[info] Updating {file:/home/will/someemptydir/}someemptydir...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Packaging /home/will/someemptydir/target/scala-2.10/someemptydir_2.10-0.1-SNAPSHOT.jar ...
[info] Done packaging.
[success] Total time: 1 s, completed 15-Feb-2017 13:08:36
[will@mybox someemptydir]$ 

This causes confusion in Exercise 5 as students run sbt package in the wrong place which then appears to do something sensible but find that the file they then want to pass to spark-submit hasn't been created. However, they have a .jar with a different name that doesn't do anything useful.

Could be addressed by

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant