简体   繁体   中英

Setting spark.driver.maxResultSize in EMR

I am trying to set the spark.driver.maxResultSize in my pyspark job. I tried setting the conf setting inside my pyspark script like so:

spark.conf.set("spark.driver.maxResultSize", "4g")

But in my Spark environment it still shows the default 2G

在此处输入图片说明

I tried setting it in my AWS EMR spark-submit options with both --spark.driver.maxResultSize 4g and --conf spark.driver.maxResultSize 4g I get unrecongnized option as an error.

Am I missing the correct syntax?

我猜语法是--conf spark.driver.maxResultSize=4g而不是--conf spark.driver.maxResultSize 4g这似乎有效并且在 Spark 环境中正确显示。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM