Stanislav Los created SPARK-10091:
-------------------------------------
Summary: PySpark Streaming doesn't support Context recovery from
checkpoint in HDFS
Key: SPARK-10091
URL: https://issues.apache.org/jira/browse/SPARK-10091
Project: Spark
Issue Type: Bug
Components: PySpark, Streaming
Affects Versions: 1.4.1, 1.4.0, 1.3.1, 1.3.0
Reporter: Stanislav Los
Apparently, PySpark Streaming application can't recover from a checkpoint that
was stored in HDFS. Method StreamingContext.getOrCreate looks for an existing
checkpoint at local file system only.
{code:title=pyspark.streaming.StreamingContext.getOrCreate()}
if not os.path.exists(checkpointPath) or not os.listdir(checkpointPath):
ssc = setupFunc()
ssc.checkpoint(checkpointPath)
return ssc
{code}
In case if this is taken care of, next piece of code fails anyway (data is
present in hdfs):
{code:title=pyspark.streaming.StreamingContext.getOrCreate()}
try:
jssc = gw.jvm.JavaStreamingContext(checkpointPath)
except Exception:
print >>sys.stderr, "failed to load StreamingContext from checkpoint"
{code}
raise
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]