conf.set("spark.driver.maxResultSize", "3g")
spark-defaults.conf
spark.driver.maxResultSize 3g
spark-submit
--conf spark.driver.maxResultSize=3g