org.apache.spark.sql.AnalysisException: Queries with streaming sources must be executed with writeStream.start();

Hot problem!
This exception has a lot of traffic. You can help 29 users by writing a short tip.

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

Solutions on the web

via GitHub by kevinushey
, 1 year ago
Queries with streaming sources must be executed with writeStream.start();
via Stack Overflow by user2361174
, 6 months ago
Queries with streaming sources must be executed with writeStream.start();; kafka
via Stack Overflow by rodders
, 1 month ago
Queries with streaming sources must be executed with writeStream.start();; kafka
via Stack Overflow by Jihun No
, 2 months ago
Queries with streaming sources must be executed with writeStream.start();; kafka
via Stack Overflow by user1870400
, 4 months ago
Queries with streaming sources must be executed with writeStream.start();; kafka
via Stack Overflow by Martin Brišiak
, 11 months ago
org.apache.spark.sql.AnalysisException: Queries with streaming sources must be executed with writeStream.start();
at org.apache.spark.sql.catalyst.analysis.UnsupportedOperationChecker$.org$apache$spark$sql$catalyst$analysis$UnsupportedOperationChecker$$throwError(UnsupportedOperationChecker.scala:173)
at org.apache.spark.sql.catalyst.analysis.UnsupportedOperationChecker$$anonfun$checkForBatch$1.apply(UnsupportedOperationChecker.scala:33)
at org.apache.spark.sql.catalyst.analysis.UnsupportedOperationChecker$$anonfun$checkForBatch$1.apply(UnsupportedOperationChecker.scala:31)
at org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:126)
at org.apache.spark.sql.catalyst.trees.TreeNode$$anonfun$foreachUp$1.apply(TreeNode.scala:125)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago

Write tip

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