# NOT RUN {
conf <- spark_config()
conf$`sparklyr.shell.conf` <- c(
"spark.executor.extraJavaOptions=-Duser.timezone='UTC'",
"spark.driver.extraJavaOptions=-Duser.timezone='UTC'",
"spark.sql.session.timeZone='UTC'"
)
sc <- spark_connect(
master = "spark://HOST:PORT", config = conf
)
connection_is_open(sc)
spark_disconnect(sc)
# }
Run the code above in your browser using DataLab