Skip to content

Instantly share code, notes, and snippets.

@dhaeb
Created October 26, 2015 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhaeb/97d5eb9a4701ce3da784 to your computer and use it in GitHub Desktop.
Save dhaeb/97d5eb9a4701ce3da784 to your computer and use it in GitHub Desktop.
Load SparkR in normal R interpreter. Assumes that SparkR is globally installed.
library(SparkR)
sc <- sparkR.init(sparkPackages = "com.databricks:spark-csv_2.10:1.2.0")
sqlContext <- sparkRSQL.init(sc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment