Github user cloud-fan commented on the issue:

    https://github.com/apache/spark/pull/18501
  
    My commit was reverted because my assumption was wrong. Some configurations 
have to be set before creating `SparkContext`, so we can't just create 
`SparkContext` and then set confs.
    
    So the corrected logic should be:
    1. if `SparkContext` is not created, build a `SparkConf` including the 
given options, and create `SparkContext`.
    2. if `SparkContext` has been created, set its conf according to the given 
options.
    
    Then we can safely remove the line `options.foreach { case (k, v) => 
session.sessionState.conf.setConfString(k, v) }`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to