Skip to content

Instantly share code, notes, and snippets.

@kenahoo
Created August 11, 2015 18:19
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 kenahoo/0f4c08fe10337a53836d to your computer and use it in GitHub Desktop.
Save kenahoo/0f4c08fe10337a53836d to your computer and use it in GitHub Desktop.
% brew install apache-spark
> Sys.setenv(SPARK_HOME="/usr/local/Cellar/apache-spark/1.4.1/libexec")
> .libPaths(c(file.path(Sys.getenv("SPARK_HOME"), "R", "lib"), .libPaths()))
> library(SparkR)
> sc <- sparkR.init(master="local")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment