How to create multiple SparkContexts in a console

后端 未结 4 718
温柔的废话
温柔的废话 2020-12-10 07:24

I want to create more than one SparkContext in a console. According to a post in mailing list, I need to do SparkConf.set( \'spark.driver.allowMultipleContexts\' , true), it

4条回答
  •  無奈伤痛
    2020-12-10 08:00

    This is a PySpark-specific limitation that existed before the spark.driver.allowMultipleContexts configuration was added (which relates to multiple SparkContext objects within a JVM). PySpark disallows multiple active SparkContexts because various parts of its implementation assume that certain components have global shared state.

提交回复
热议问题