Unable to launch SparkR in RStudio

前端 未结 7 984
一向
一向 2021-02-19 07:52

After long and difficult installation process of SparkR i getting into new problems of launching SparkR.

My Settings

R 3.2.0    
RStudio 0.98.1103    
Rt         


        
7条回答
  •  死守一世寂寞
    2021-02-19 08:22

    I think it was a bug that has now been resolved. Try the following,

    Sys.setenv(SPARK_HOME="C:\\spark-1.4.0")
    
    .libPaths(c(file.path(Sys.getenv("SPARK_HOME"), "R", "lib"), .libPaths()))
    
    library("SparkR", lib.loc="C:\\spark-1.4.0\\lib") # The use of \\ is for windows environment.
    
    library(SparkR)
    
    sc=sparkR.init(master="local")
    

    Launching java with spark-submit command C:\spark-1.4.0/bin/spark-submit.cmd sparkr-shell

    C:\Users\Ashish\AppData\Local\Temp\RtmpWqFsOB\backend_portbdc329477c6

    Hope this helps.

提交回复
热议问题