-
Notifications
You must be signed in to change notification settings - Fork 6
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
drop default JAVA_HOME from SparkLauncher #31
drop default JAVA_HOME from SparkLauncher #31
Conversation
6564288
to
384a5bf
Compare
|
||
private val livyHome: String = absolutePath(env("LIVY_HOME", "./livy")) | ||
|
||
private val javaHome: String = absolutePath(env("JAVA_HOME", null)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why JAVA_HOME is set to null by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So working java executable would not be broken by a non-existent /opt/jdk11 path.
val startProcess = Process( | ||
livyRunner, | ||
new File("."), | ||
val extraEnv = ArrayBuffer( | ||
"SPARK_HOME" -> sparkHome, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, you're not dropping SPARK_HOME, as you wrote in changeset description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, has renamed the PR.
@alextokarew has imported your pull request. If you are a Yandex employee, you can view this diff. |
✅ This pull request is being closed because it has been successfully merged into our internal monorepository. |
This forces the java to be at specific path, though it is probably enough for it to be resolvable via `$PATH`. --- Pull Request resolved: #31 commit_hash:ac3400c8fb8931aab3afbd099c82b21c72ac7999
This forces the java to be at specific path, though it is probably enough for it to be resolvable via
$PATH
.