Skip to main content
SimonBergerard
Silver ⭐️
Oct 25, 2021 1:16 PM UTC
Question

My SparkConfigurations are not overwriting in my Spark driver

Hi everyone,

 

I tried to run a spark job on Cloudera by overwriting some basics spark configurations. So I created a spark job with the following Configurations (optional):

 

  • spark.eventLog.dir = myPath
  • spark.eventLog.enabled = true
  • spark.submit.deployMode = cluster

I have executed this job by running a cde cli command. The submitter keeps my overwriting values for these 3 Spark configurations but these values weren't retrieve in my Spark driver. For instance, I found a "default" tmpPath for spark.eventLog.dir instead of myPath and my driver used a client deployMode.

Some other configurations (like spark.history.fs.logDirectory) were well overwriting at the same time. 

 

Have you ever met this problem?

 

Thank you 🙂


result.pngjob_conf.png

2 replies

RangaReddy
Gold ⭐️
Gold ⭐️
Oct 26, 2021 5:59 AM UTC

Hi @SimonBergerard 

Spark configuration parameters precedence (left is low and right is high) of the order is:

 

spark-defaults.conf --> spark-submit/spark-shell --> spark code (scala/java/python)

 

If you want to see the parameter values you can run with --verbose mode.

 

spark-submit --verbose

 

Please recheck the spark-submit command and parameters once again.

--conf spark.eventLog.enabled=true

--conf spark.eventLog.dir=<directory>

--conf spark.submit.deployMode=cluster

Translate
VidyaSargur
Community Manager
Community Manager
Oct 29, 2021 6:34 AM UTC

@SimonBergerard, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.  

Translate
Regards, Vidya Sargur Madabhushi| Senior Community Manager | Was your question answered? Make sure to mark the answer as the Best Answer. If you find a reply useful, say thanks by clicking on the thumbs up button.