Closed kination closed 6 years ago
Dear @djKooks
What is your Spark version ?
Best Regards, Heitor
@hmgomes I'm testing on:
MacOS 10.13
Spark 2.3.0
Is it not supporting yet?
@djKooks yes, you will need to use Spark 2.2. However, it should be an easy fix to upgrade it to Spark 2.3, I will go ahead and create a pull request for that as soon as I am back to the office
@hmgomes okay, thanks. But it seems there are problem loading:
com.typesafe.sbteclipse#sbteclipse-plugin;4.0.0: not found
[error] unresolved dependency: com.github.mpeltonen#sbt-idea;1.6.0: not found
[error] unresolved dependency: org.netbeans.nbsbt#nbsbt-plugin;1.1.4: not found
[error] unresolved dependency: com.orrsella#sbt-sublime;1.1.1: not found
Could you also look on this?
@djKooks I've created a pull request related to this issue.
Regarding the other issue you've just mentioned, it looks like an issue with sbt configuration. I believe the folk in https://github.com/sbt/sbteclipse/issues/315 had the same issue and there are some workarounds (see latest replies). Please see if that works for you, if not I will try to replicate the error later and see what we can do about it.
@hmgomes okay, thanks. But it seems there are problem loading:
com.typesafe.sbteclipse#sbteclipse-plugin;4.0.0: not found [error] unresolved dependency: com.github.mpeltonen#sbt-idea;1.6.0: not found [error] unresolved dependency: org.netbeans.nbsbt#nbsbt-plugin;1.1.4: not found [error] unresolved dependency: com.orrsella#sbt-sublime;1.1.1: not found
Could you also look on this?
@hmgomes thanks for help. Unfortunately, it seems not working still. I updated sbteclipse-plugin to 5.2.4 as in link, but other 3 still not works.
If I ignore unresolved dependency
:
[error] at java.lang.Thread.run(Thread.java:745)
[error] (update) sbt.librarymanagement.ResolveException: unresolved dependency: com.github.mpeltonen#sbt-idea;1.6.0: not found
[error] unresolved dependency: org.netbeans.nbsbt#nbsbt-plugin;1.1.4: not found
[error] unresolved dependency: com.orrsella#sbt-sublime;1.1.1: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i
[warn] Ignoring load failure: no project loaded.
[error] java.lang.RuntimeException: Session not initialized.
[error] at scala.sys.package$.error(package.scala:27)
[error] at sbt.Project$.$anonfun$getOrError$1(Project.scala:442)
[error] at scala.Option.getOrElse(Option.scala:121)
[error] at sbt.Project$.getOrError(Project.scala:442)
[error] at sbt.Project$.session(Project.scala:448)
[error] at sbt.Project$.extract(Project.scala:453)
[error] at sbt.BuiltinCommands$.notifyUsersAboutShell(Main.scala:928)
[error] at sbt.BuiltinCommands$.$anonfun$notifyUsersAboutShell$3(Main.scala:937)
[error] at sbt.Command$.$anonfun$command$2(Command.scala:91)
[error] at sbt.Command$.process(Command.scala:181)
[error] at sbt.MainLoop$.processCommand(MainLoop.scala:151)
[error] at sbt.MainLoop$.$anonfun$next$2(MainLoop.scala:139)
[error] at sbt.State$$anon$1.runCmd$1(State.scala:246)
[error] at sbt.State$$anon$1.process(State.scala:250)
[error] at sbt.MainLoop$.$anonfun$next$1(MainLoop.scala:139)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.MainLoop$.next(MainLoop.scala:139)
[error] at sbt.MainLoop$.run(MainLoop.scala:132)
[error] at sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:110)
[error] at sbt.io.Using.apply(Using.scala:22)
[error] at sbt.MainLoop$.runWithNewLog(MainLoop.scala:104)
[error] at sbt.MainLoop$.runAndClearLast(MainLoop.scala:59)
[error] at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:44)
[error] at sbt.MainLoop$.runLogged(MainLoop.scala:35)
[error] at sbt.StandardMain$.runManaged(Main.scala:138)
[error] at sbt.xMain.run(Main.scala:89)
[error] at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
[error] at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
[error] at xsbt.boot.Launch$.run(Launch.scala:109)
[error] at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
[error] at xsbt.boot.Launch$.launch(Launch.scala:117)
[error] at xsbt.boot.Launch$.apply(Launch.scala:18)
[error] at xsbt.boot.Boot$.runImpl(Boot.scala:56)
[error] at xsbt.boot.Boot$.main(Boot.scala:18)
[error] at xsbt.boot.Boot.main(Boot.scala)
[error] Session not initialized.
it forced to close. Could you find something more?
@hmgomes thanks for help. Unfortunately, it seems not working still. I updated sbteclipse-plugin to 5.2.4 as in link, but other 3 still not works.
If I ignore
unresolved dependency
:[error] at java.lang.Thread.run(Thread.java:745) [error] (update) sbt.librarymanagement.ResolveException: unresolved dependency: com.github.mpeltonen#sbt-idea;1.6.0: not found [error] unresolved dependency: org.netbeans.nbsbt#nbsbt-plugin;1.1.4: not found [error] unresolved dependency: com.orrsella#sbt-sublime;1.1.1: not found Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i [warn] Ignoring load failure: no project loaded. [error] java.lang.RuntimeException: Session not initialized. [error] at scala.sys.package$.error(package.scala:27) [error] at sbt.Project$.$anonfun$getOrError$1(Project.scala:442) [error] at scala.Option.getOrElse(Option.scala:121) [error] at sbt.Project$.getOrError(Project.scala:442) [error] at sbt.Project$.session(Project.scala:448) [error] at sbt.Project$.extract(Project.scala:453) [error] at sbt.BuiltinCommands$.notifyUsersAboutShell(Main.scala:928) [error] at sbt.BuiltinCommands$.$anonfun$notifyUsersAboutShell$3(Main.scala:937) [error] at sbt.Command$.$anonfun$command$2(Command.scala:91) [error] at sbt.Command$.process(Command.scala:181) [error] at sbt.MainLoop$.processCommand(MainLoop.scala:151) [error] at sbt.MainLoop$.$anonfun$next$2(MainLoop.scala:139) [error] at sbt.State$$anon$1.runCmd$1(State.scala:246) [error] at sbt.State$$anon$1.process(State.scala:250) [error] at sbt.MainLoop$.$anonfun$next$1(MainLoop.scala:139) [error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16) [error] at sbt.MainLoop$.next(MainLoop.scala:139) [error] at sbt.MainLoop$.run(MainLoop.scala:132) [error] at sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:110) [error] at sbt.io.Using.apply(Using.scala:22) [error] at sbt.MainLoop$.runWithNewLog(MainLoop.scala:104) [error] at sbt.MainLoop$.runAndClearLast(MainLoop.scala:59) [error] at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:44) [error] at sbt.MainLoop$.runLogged(MainLoop.scala:35) [error] at sbt.StandardMain$.runManaged(Main.scala:138) [error] at sbt.xMain.run(Main.scala:89) [error] at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109) [error] at xsbt.boot.Launch$.withContextLoader(Launch.scala:128) [error] at xsbt.boot.Launch$.run(Launch.scala:109) [error] at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35) [error] at xsbt.boot.Launch$.launch(Launch.scala:117) [error] at xsbt.boot.Launch$.apply(Launch.scala:18) [error] at xsbt.boot.Boot$.runImpl(Boot.scala:56) [error] at xsbt.boot.Boot$.main(Boot.scala:18) [error] at xsbt.boot.Boot.main(Boot.scala) [error] Session not initialized.
it forced to close. Could you find something more?
Well, we are converging to a solution, it is now a runtime error :)
Let's see:
1) were you able to sbt package
and generate the jar file for the project?
2) which command line triggered this error?
Cheers, Heitor
Another thing, can you try with Scala 2.11.8?
@hmgomes thanks for help!
1, 2. No, this issue happens in sbt package
command.
This has been also tested in Scala 2.11.10. Is it different with 2.11.8?
@djKooks Either of the Scala versions should work fine, but I was thinking of something different. What is your sbt version?
@hmgomes mine is sbt 1.2.0 .
@djKooks Can you try sbt 0.13?
@hmgomes oh, you're right! It works well in sbt 0.13.16. I'm not sure of the reason, but it will be good to add comment about this.
Thanks for help~
Thanks @djKooks for testing it. I will add a comment about it in the readme.
Best wishes,
Heitor
Bug Report template
Expected behavior
Success build with command
sbt package
Observed behavior
<< What results have you obtained? Is there an error message? If so, please paste it in here (not all issues produce error messages) >> While following up the tutorial, build stoped with failure.
Steps to reproduce the issue
Build fail with log with command
sbt package
Infrastructure details