You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Jeffery <yu...@gmail.com> on 2015/04/23 05:58:48 UTC
Spark RDD Lifecycle: whether RDD will be reclaimed out of scope
Hi, Dear Spark Users/Devs:
In a method, I create a new RDD, and cache it, whether Spark will unpersit
the RDD automatically after the rdd is out of scope?
I am thinking so, but want to make sure with you, the experts :)
Thanks,
Jeffery Yuan
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-RDD-Lifecycle-whether-RDD-will-be-reclaimed-out-of-scope-tp22618.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org
Re: Spark RDD Lifecycle: whether RDD will be reclaimed out of scope
Posted by Prannoy <pr...@sigmoidanalytics.com>.
Hi,
Yes, Spark automatically removes old RDDs from the cache when you make new
ones. Unpersist forces it to remove them right away.
On Thu, Apr 23, 2015 at 9:28 AM, Jeffery [via Apache Spark User List] <
ml-node+s1001560n22618h60@n3.nabble.com> wrote:
> Hi, Dear Spark Users/Devs:
>
> In a method, I create a new RDD, and cache it, whether Spark will unpersit
> the RDD automatically after the rdd is out of scope?
>
> I am thinking so, but want to make sure with you, the experts :)
>
> Thanks,
> Jeffery Yuan
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-spark-user-list.1001560.n3.nabble.com/Spark-RDD-Lifecycle-whether-RDD-will-be-reclaimed-out-of-scope-tp22618.html
> To start a new topic under Apache Spark User List, email
> ml-node+s1001560n1h33@n3.nabble.com
> To unsubscribe from Apache Spark User List, click here
> <http://apache-spark-user-list.1001560.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=cHJhbm5veUBzaWdtb2lkYW5hbHl0aWNzLmNvbXwxfC0xNTI2NTg4NjQ2>
> .
> NAML
> <http://apache-spark-user-list.1001560.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-RDD-Lifecycle-whether-RDD-will-be-reclaimed-out-of-scope-tp22618p22625.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.