SparkContext.
setSystemProperty
Set a Java system property, such as spark.executor.memory. This must must be invoked before instantiating SparkContext.