You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Stanislav Los (JIRA)" <ji...@apache.org> on 2015/08/18 21:55:46 UTC
[jira] [Updated] (SPARK-10091) PySpark Streaming doesn't support
Context recovery from checkpoint in HDFS
[ https://issues.apache.org/jira/browse/SPARK-10091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stanislav Los updated SPARK-10091:
----------------------------------
Description:
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}
was:
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
> 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.3.0, 1.3.1, 1.4.0, 1.4.1
> 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}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org