Github user felixcheung commented on the pull request:
https://github.com/apache/spark/pull/10171#issuecomment-164685724
Well, that was the first thing I tried :)
```
Exception in thread "main" java.io.IOException: Cannot run program "Rscript
--vanilla": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at org.apache.spark.deploy.RRunner$.main(RRunner.scala:90)
```
ProcessBuilder assumes that entire string is the runnable.
One possible trick is to do a `rCommand.split(' ').toSeq` at
https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/RRunner.scala#L81
Another trick is to set `spark.r.driver.command` to another script that
calls `Rscript --vanilla` - I have this working.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]