# NOT RUN {
sparkR.session()
df <- read.json(path)
sparkR.session("local[2]", "SparkR", "/home/spark")
sparkR.session("yarn", "SparkR", "/home/spark",
list(spark.executor.memory="4g", spark.submit.deployMode="client"),
c("one.jar", "two.jar", "three.jar"),
c("com.databricks:spark-avro_2.12:2.0.1"))
sparkR.session(spark.master = "yarn", spark.submit.deployMode = "client",
# }
Run the code above in your browser using DataLab