# NOT RUN {
sc <- sparkR.init("local[2]", "SparkR", "/home/spark")
sc <- sparkR.init("local[2]", "SparkR", "/home/spark",
list(spark.executor.memory="1g"))
sc <- sparkR.init("yarn-client", "SparkR", "/home/spark",
list(spark.executor.memory="4g"),
list(LD_LIBRARY_PATH="/directory of JVM libraries (libjvm.so) on workers/"),
c("one.jar", "two.jar", "three.jar"),
c("com.databricks:spark-avro_2.11:2.0.1"))
# }
Run the code above in your browser using DataLab