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)