pyspark.SparkContext.setSystemProperty

classmethod SparkContext.setSystemProperty(key: str, value: str) → None

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