I am trying to overwrite the spark session/spark context default configs, but it is picking entire node/cluster resource.
spark = SparkSession.builder
Setting 'spark.driver.host' to 'localhost' in the config works for me
spark = SparkSession \ .builder \ .appName("MyApp") \ .config("spark.driver.host", "localhost") \ .getOrCreate()