Modifying the SparkR sources to use a specified engine
The SparkR package we tested assumes that worker nodes can call the R engine using the hard-wired command Rscript. To use SparkR with TIBCO Enterprise Runtime for R (TERR), we needed to change SparkR sources so it can call a different engine instead.
Prerequisites
- You must have installed open-source R.
- You must have installed TIBCO Enterprise Runtime for R.
- You must have completed the steps described in Installing and downloading the required components.
Procedure
-
Change the SparkR source code to allow a different command to invoke the engine by making the following change to the file
SparkR-pkg/pkg/src/src/main/ scala/edu/berkeley/cs/amplab/ sparkr/RRDD.scala.
Change
private def createRProcess(rLibDir: String, port: Int, script: String) = { val rCommand = "Rscript" val rOptions = "--vanilla" ...
Copyright © TIBCO Software Inc. All Rights Reserved.