Skip to content

Commit 7eac142

Browse files
committed
add spark.sparkr.r.command config parameter
1 parent 3c01568 commit 7eac142

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/scala/org/apache/spark/api/r

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/api/r/RRDD.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ private[r] object RRDD {
388388
}
389389

390390
private def createRProcess(rLibDir: String, port: Int, script: String): BufferedStreamThread = {
391-
val rCommand = "Rscript"
391+
val rCommand = SparkEnv.get.conf.get("spark.sparkr.r.command", "Rscript")
392392
val rOptions = "--vanilla"
393393
val rExecScript = rLibDir + "/SparkR/worker/" + script
394394
val pb = new ProcessBuilder(List(rCommand, rOptions, rExecScript))

0 commit comments

Comments
 (0)