Hi, have a look at the documentation for spark.driver.extraJavaOptions (which seems to have disappeared since I looked it up last week) and spark.executor.extraJavaOptions at < http://spark.apache.org/docs/latest/configuration.html#runtime-environment>.
Tobias