How do you load csv file into SparkR on RStudio? Below are the steps I had to perform to run SparkR on RStudio. I have used read.df to read .csv not sure how else to write t
Spark 2.0.0+:
You can use csv data source:
loadDF(sqlContext, path="some_path", source="csv", header="true")
without loading spark-csv.
Original answer:
As far as I can tell you're using a wrong version of spark-csv. Pre-built versions of Spark are using Scala 2.10, but you're using Spark CSV for Scala 2.11. Try this instead:
sc <- sparkR.init(sparkPackages="com.databricks:spark-csv_2.10:1.2.0")