from pyspark import SparkConf conf = SparkConf().setAppName("myApp")
from pyspark import SparkConf conf = SparkConf() \ .setAppName("myApp") \ .setMaster("local[*]") \ .set("spark.executor.memory", "4g") \ .set("spark.driver.memory", "4g")Package library: PySpark