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

Sean Owen resolved SPARK-13229.
-------------------------------
    Resolution: Won't Fix

> When checkpoint interval for ConstantInputDStream is lower than batch 
> duration IllegalArgumentException says it is due to slide time instead
> --------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-13229
>                 URL: https://issues.apache.org/jira/browse/SPARK-13229
>             Project: Spark
>          Issue Type: Improvement
>          Components: Streaming
>    Affects Versions: 2.0.0
>            Reporter: Jacek Laskowski
>            Priority: Trivial
>
> I have not set the slide time so the requirement failure is not meaningful at 
> all to me (and the end user is left confused):
> {code}
> java.lang.IllegalArgumentException: requirement failed: The checkpoint 
> interval for ConstantInputDStream has been set to 1000 ms which is lower than 
> its slide time (5000 ms). Please set it to at least 5000 ms.
> {code}
> Here is the code to reproduce:
> {code}
> val sc = new SparkContext("local[*]", "Constant Input DStream Demo", new 
> SparkConf())
> val ssc = new StreamingContext(sc, batchDuration = Seconds(5))
> ssc.checkpoint("_checkpoint")
> import org.apache.spark.streaming.dstream.ConstantInputDStream
> val rdd = sc.parallelize(0 to 9)
> val cis = new ConstantInputDStream(ssc, rdd)
> cis.checkpoint(interval = Seconds(1))
> cis.print
> ssc.start
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to