We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c01568 commit 7eac142Copy full SHA for 7eac142
core/src/main/scala/org/apache/spark/api/r/RRDD.scala
@@ -388,7 +388,7 @@ private[r] object RRDD {
388
}
389
390
private def createRProcess(rLibDir: String, port: Int, script: String): BufferedStreamThread = {
391
- val rCommand = "Rscript"
+ val rCommand = SparkEnv.get.conf.get("spark.sparkr.r.command", "Rscript")
392
val rOptions = "--vanilla"
393
val rExecScript = rLibDir + "/SparkR/worker/" + script
394
val pb = new ProcessBuilder(List(rCommand, rOptions, rExecScript))
0 commit comments