标签:
library(SparkR, lib.loc = c("/usr/local/spark/spark-1.5.2-bin-hadoop2.6/R/lib")
Sys.setenv(SPARK_HOME="/usr/local/spark/spark-1.5.2-bin-hadoop2.6")
sc <- sparkR.init(master = "spark://master:7077", sparkEnvir = list(spark.driver.memory="1g"))
sqlContext <- sparkRSQL.init(sc)
标签:
原文地址:http://www.cnblogs.com/fangshiwei/p/5475523.html