Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do I clear my spark cache?



How do I clear my spark cache?..

Answer / Dheeraj Kumar Singh

To clear the Spark cache, you can call the unpersist() or stop() method on the RDD or DataFrame. For example:ntval rdd = sc.textFile("file.txt")ntrdd.cache() // cache the RDDntrdd.unpersist() // clear the cache

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Spark Interview Questions

Describe Partition and Partitioner in Apache Spark?

1 Answers  


What is difference between client and cluster mode in spark?

1 Answers  


Why lazy evaluation is good in spark?

1 Answers  


What are the languages supported by apache spark?

1 Answers  


What is lazy evaluation and how is it useful?

1 Answers  


What is the command to start and stop the Spark in an interactive shell?

1 Answers  


What is data skew in spark?

1 Answers  


What are shared variables?

1 Answers  


Explain the run-time architecture of Spark?

1 Answers  


Can you define rdd?

1 Answers  


How is RDD in Apache Spark different from Distributed Storage Management?

1 Answers  


What is a databricks cluster?

1 Answers  


Categories