Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11211#discussion_r90579359
  
    --- Diff: python/pyspark/context.py ---
    @@ -163,10 +163,8 @@ def _do_init(self, master, appName, sparkHome, 
pyFiles, environment, batchSize,
                 if k.startswith("spark.executorEnv."):
                     varName = k[len("spark.executorEnv."):]
                     self.environment[varName] = v
    -        if sys.version >= '3.3' and 'PYTHONHASHSEED' not in os.environ:
    -            # disable randomness of hash of string in worker, if this is 
not
    -            # launched by spark-submit
    -            self.environment["PYTHONHASHSEED"] = "0"
    +
    +        self.environment["PYTHONHASHSEED"] = 
os.environ.get("PYTHONHASHSEED", "0")
    --- End diff --
    
    Is there any use in allowing the user to override the value?


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to