How to use Jupyter + SparkR and custom R install

前端 未结 2 698
傲寒
傲寒 2021-01-15 20:06

I am using a Dockerized image and Jupyter notebook along with SparkR kernel. When I create a SparkR notebook, it uses an install of Microsoft R (3.3.2) instead of vanilla C

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-15 20:22

    To use a custom R environment I believe you need to set the following application properties when you start Spark:

        "spark.r.command": "/custom/path/bin/R",
        "spark.r.driver.command": "/custom/path/bin/Rscript",
        "spark.r.shell.command" : "/custom/path/bin/R"
    

    This is more completely documented here: https://spark.apache.org/docs/latest/configuration.html#sparkr

提交回复
热议问题