-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-8019] [SPARKR] Support SparkR spawning worker R processes with a command other then Rscript #6557
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
Conversation
|
Jenkins, ok to test |
|
Test build #33916 has finished for PR 6557 at commit
|
|
SparkConf is the consistent way to manage configurations, we are moving away from environment variables since Spark 1.0, but still keep compatibility for old environment variables. Sometimes, environment variables will be easy to use than SparkConf, for example, we can switch the version of Python in a single line: @JoshRosen may knows more about |
|
Test build #866 has finished for PR 6557 at commit
|
|
Jenkins, retest this please |
|
So we already have a |
|
In my work, I haven't used spark-submit: I start R (or TERR), and Note that SPARKR_DRIVER_R defaults to "R", whereas my proposed |
|
Test build #33925 has finished for PR 6557 at commit
|
|
LGTM. We can document this later. |
|
OK merging into master. |
|
Was this officially documented ? |
|
This is updated by #9179 |
|
Thanks! |
This is a simple change to add a new environment variable
"spark.sparkr.r.command" that specifies the command that SparkR will
use when creating an R engine process. If this is not specified,
"Rscript" will be used by default.
I did not add any documentation, since I couldn't find any place where
environment variables (such as "spark.sparkr.use.daemon") are
documented.
I also did not add a unit test. The only test that would work
generally would be one starting SparkR with
sparkR.init(sparkEnvir=list(spark.sparkr.r.command="Rscript")), just
using the default value. I think that this is a low-risk change.
Likely committers: @shivaram