Reputation: 1
I would like to know how to create multiple SparkContext instances in the same application. Right now, the following message pops up: org.apache.spark.SparkException
Is it possible to run more than one SparkContext instances in the same application?
Upvotes: 0
Views: 708
Reputation: 3890
Yes, it is possible by using the configuration below:
spark.driver.allowMultipleContexts=true
Reference: Support multiple SparkContexts in the same JVM
Upvotes: 1