Jacek Laskowski created SPARK-13229:
---------------------------------------
Summary: 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: Bug
Components: Streaming
Affects Versions: 2.0.0
Reporter: Jacek Laskowski
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]