java.lang.IllegalArgumentException: requirement failed: Spark Streaming cannot be initialized with both SparkContext and checkpoint as null

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by dkick
, 1 year ago
requirement failed: Spark Streaming cannot be initialized with both SparkContext and checkpoint as null
via Stack Overflow by j9dy
, 1 year ago
requirement failed: RDD transformation requires a non-null SparkContext. Unfortunately SparkContext in this MongoRDD is null. This can happen after MongoRDD has been deserialized. SparkContext is not Serializable, therefore it deserializes to null. RDD transformations are not allowed inside lambdas used in other RDD transformations.
via samza-dev by Chris Riccomini, 1 year ago
requirement failed: Missing required property 'zookeeper.connect'
via samza-dev by Garry Turkington, 1 year ago
requirement failed: Missing required property 'zookeeper.connect'
via GitHub by gebner
, 1 year ago
requirement failed: Incorrect shallow formula: y = d != c = d
via GitHub by ZeweiChen11
, 2 months ago
requirement failed: Engine.init: spark.dynamicAllocation.maxExecutors and spark.dynamicAllocation.minExecutors must be identical in dynamic allocation for BigDL
java.lang.IllegalArgumentException: requirement failed: Spark Streaming cannot be initialized with both SparkContext and checkpoint as null
at scala.Predef$.require(Predef.scala:224)
at org.apache.spark.streaming.StreamingContext.(StreamingContext.scala:131)
at org.apache.spark.streaming.TestStreamingContext.(TestStreamingContext.scala:28)
at org.apache.spark.streaming.TestStreamingContext.(TestStreamingContext.scala:35)
at com.holdenkarau.spark.testing.StreamingSuiteCommon$class.setupStreams(StreamingSuiteCommon.scala:141)
at undefined.MyTest.setupStreams(MyTest.scala:6)
at com.holdenkarau.spark.testing.StreamingSuiteBase$class.testOperation(StreamingSuiteBase.scala:150)
at undefined.MyTest.testOperation(MyTest.scala:6)
at undefined.MyTest.(MyTest.scala:11)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 month ago
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.