You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Shixiong Zhu (JIRA)" <ji...@apache.org> on 2017/11/10 23:20:00 UTC

[jira] [Resolved] (SPARK-21667) ConsoleSink should not fail streaming query with checkpointLocation option

     [ https://issues.apache.org/jira/browse/SPARK-21667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shixiong Zhu resolved SPARK-21667.
----------------------------------
       Resolution: Fixed
         Assignee: Rekha Joshi
    Fix Version/s: 2.3.0
                   2.2.1

> ConsoleSink should not fail streaming query with checkpointLocation option
> --------------------------------------------------------------------------
>
>                 Key: SPARK-21667
>                 URL: https://issues.apache.org/jira/browse/SPARK-21667
>             Project: Spark
>          Issue Type: Improvement
>          Components: Structured Streaming
>    Affects Versions: 2.3.0
>            Reporter: Jacek Laskowski
>            Assignee: Rekha Joshi
>            Priority: Minor
>             Fix For: 2.2.1, 2.3.0
>
>
> As agreed on the Spark users mailing list in the thread "\[SS] Console sink not supporting recovering from checkpoint location? Why?" in which [~marmbrus] said:
> {quote}
> I think there is really no good reason for this limitation.
> {quote}
> Using {{ConsoleSink}} should therefore not fail a streaming query when used with {{checkpointLocation}} option.
> {code}
> // today's build from the master
> scala> spark.version
> res8: String = 2.3.0-SNAPSHOT
> scala> val q = records.
>      |   writeStream.
>      |   format("console").
>      |   option("truncate", false).
>      |   option("checkpointLocation", "/tmp/checkpoint"). // <--
> checkpoint directory
>      |   trigger(Trigger.ProcessingTime(10.seconds)).
>      |   outputMode(OutputMode.Update).
>      |   start
> org.apache.spark.sql.AnalysisException: This query does not support recovering from checkpoint location. Delete /tmp/checkpoint/offsets to start over.;
>   at org.apache.spark.sql.streaming.StreamingQueryManager.createQuery(StreamingQueryManager.scala:222)
>   at org.apache.spark.sql.streaming.StreamingQueryManager.startQuery(StreamingQueryManager.scala:278)
>   at org.apache.spark.sql.streaming.DataStreamWriter.start(DataStreamWriter.scala:284)
>   ... 61 elided
> {code}
> The "trigger" is SPARK-16116 and [this line|https://github.com/apache/spark/pull/13817/files#diff-d35e8fce09686073f81de598ed657de7R277] in particular.
> This also relates to SPARK-19768 that was resolved as not a bug.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org