Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/11211#discussion_r54337668
--- 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 a reason for removeing the python `sys.version` check?
---
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]