Skip to content Skip to sidebar Skip to footer

Sparkexception: Only One Sparkcontext May Be Running In This Jvm (see Spark-2243)

I see several post that contain the same error as the error that I am receiving, but none are leading me to a fix on my code. I have used this exact same code many times with no is

Solution 1:

SparkSession is the new entry point in Spark 2.x. This is a replacement for SQLContext, however it uses SQLContext in internal code.

Everything you were making with SQLContext should be possible with SparkSession.

If you really want to use SQLContext, use spark.sqlContext variable

Post a Comment for "Sparkexception: Only One Sparkcontext May Be Running In This Jvm (see Spark-2243)"