我是Sparkstreaming的新手。我正在尝试使用本地csv文件进行结构化Spark流。我在处理的时候遇到了下面的异常。Exception in thread "main" org.apache.spark.sql.AnalysisException: Queries with streaming sources mustbe executed with writeStream.start();;
FileSource[file:/&
我有一个系统,其中REST API (Flask)使用spark-sumbit将作业发送到启动并运行的pyspark。由于各种原因,我需要spark来同时运行所有任务(例如,我需要设置executors的数量=运行时的任务数量)。例如,如果我有20个任务,但只有4个核心,我希望每个核心执行5个任务(执行器),而不必重新启动spark。我知道我可以在启动spark时设置executors的数量,但我不想这样做,因为spark正在执行其他作业。
这可以通过一种变通方法来实现吗?
我正在接收Kafka消息上的文件路径。我需要将这个文件加载到spark RDD中,对其进行处理,然后将其转储到HDFS。Queries with streaming sources must be executed with writeStream.start();" Queries with streaming so
我正在尝试在更新输出模式下使用spark structured写入文件。我找到了,只要配置了控制台格式,它就能正常工作。但如果我将输出模式更改为: .writeStream .format("json"): Data source json does not support Update output mode;
at org.apache.spar