Skip to content

Provide flag for scala that doesn't include akka libraries #8565

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

Closed
scabug opened this issue May 6, 2014 · 3 comments
Closed

Provide flag for scala that doesn't include akka libraries #8565

scabug opened this issue May 6, 2014 · 3 comments
Assignees

Comments

@scabug
Copy link

scabug commented May 6, 2014

Spark users have been running into an annoying issue where they can't launch Spark using the scala command because it automatically injects a fixed version of akka on the classpath[1]. Spark uses a different version of akka that is incompatible with that included with Scala 2.10 (or at least seems to be based on these binary errors). We are using akka 2.2.3.

I'd guess that other projects have run into this, so I wonder if there is a more straightforward work-around.

My proposal was to have a flag that doesn't load extra libraries:

scala -langonly XXX
scala -noakka XXX

Right now we tell the users to launch with java which is definitely more clunky.

[1] http://apache-spark-developers-list.1001551.n3.nabble.com/Akka-problem-when-using-scala-command-to-launch-Spark-applications-in-the-current-0-9-0-SNAPSHOT-td2.html

@scabug
Copy link
Author

scabug commented May 6, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8565?orig=1
Reporter: Patrick Wendell (pwendell)
Affected Versions: 2.10.4
Duplicates #8472

@scabug
Copy link
Author

scabug commented May 6, 2014

@retronym said:
Merging with #8472

@scabug scabug closed this as completed May 6, 2014
@scabug
Copy link
Author

scabug commented May 6, 2014

@retronym said:
Does scala -nobootcp also workaround the problem?

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

No branches or pull requests

2 participants