user2602577
user2602577

Reputation: 1

Apache Spark Start multiple SparkContext instances

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

Answers (1)

banjara
banjara

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

Related Questions