You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by mrm <ma...@skimlinks.com> on 2014/07/21 17:37:08 UTC

gain access to persisted rdd

Hi,

I am using pyspark and have persisted a list of rdds within a function, but
I don't have a reference to them anymore. The RDD's are listed in the UI,
under the "Storage" tab, and they have names associated to them (e.g. 4). Is
it possible to access the RDD's to unpersist them?

Thanks!




--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/gain-access-to-persisted-rdd-tp10313.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: gain access to persisted rdd

Posted by mrm <ma...@skimlinks.com>.
Ok, thanks for the answers. Unfortunately, there is no sc.getPersistentRDDs
for pyspark.



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/gain-access-to-persisted-rdd-tp10313p10393.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: gain access to persisted rdd

Posted by chutium <te...@gmail.com>.
but at least if user want to access the persisted RDDs, they can use
sc.getPersistentRDDs  in the same context.



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/gain-access-to-persisted-rdd-tp10313p10337.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: gain access to persisted rdd

Posted by Andrew Or <an...@databricks.com>.
Hi Maria,

If you don't have a reference to a persisted RDD, it will be automatically
unpersisted on the next GC by the ContextCleaner. This is implemented for
scala, but should still work in python because python uses reference
counting to clean up objects that are no longer strongly referenced.

Andrew


2014-07-21 8:37 GMT-07:00 mrm <ma...@skimlinks.com>:

> Hi,
>
> I am using pyspark and have persisted a list of rdds within a function, but
> I don't have a reference to them anymore. The RDD's are listed in the UI,
> under the "Storage" tab, and they have names associated to them (e.g. 4).
> Is
> it possible to access the RDD's to unpersist them?
>
> Thanks!
>
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/gain-access-to-persisted-rdd-tp10313.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>