Unable to launch SparkR in RStudio

前端 未结 7 986
一向
一向 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:17

    I had a similar issue. In my case the problem was with the hyphen ('-').
    by changing the code :

    sc <- sparkR.init(master = "local[*]",sparkPackages = c("com.databricks:spark-csv_2.11-1.4.0"))
    

    to:

    sc <- sparkR.init(master = "local[*]",sparkPackages = c("com.databricks:spark-csv_2.11:1.4.0"))
    

    worked for me. Do you notice the change?

    P.S.: Do copy the jar in your SPARK_HOME\lib folder

    Edit 1: Also, check that you have configured your "HADOOP_HOME"


    Hope this helps.

提交回复
热议问题