What does Exception: Randomness of hash of string should be disabled via PYTHONHASHSEED mean in pyspark?

前端 未结 2 1949
长发绾君心
长发绾君心 2021-01-12 01:11

I am trying to create a dictionary from a list in pyspark. I have the following list of lists:

rawPositions

Gives

[[100979         


        
2条回答
  •  生来不讨喜
    2021-01-12 01:36

    Check in Spark Configuration https://spark.apache.org/docs/latest/configuration.html#loading-default-configurations Runtime Environment part.

    When running:

    $SPARK_HOME/bin/spark-submit
    

    Add:

    --conf spark.executorEnv.PYTHONHASHSEED=321
    

提交回复
热议问题