Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA45517A41 for ; Tue, 30 Sep 2014 08:00:55 +0000 (UTC) Received: (qmail 49003 invoked by uid 500); 30 Sep 2014 08:00:55 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 48978 invoked by uid 500); 30 Sep 2014 08:00:55 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 48968 invoked by uid 99); 30 Sep 2014 08:00:55 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2014 08:00:55 +0000 Date: Tue, 30 Sep 2014 08:00:55 +0000 (UTC) From: "Milan Straka (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SPARK-3731) RDD caching stops working in pyspark after some time MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-3731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Milan Straka updated SPARK-3731: -------------------------------- Environment: Linux, 32bit, both in local mode or in standalone cluster mode (was: Linux, 32bit, both local master and standalone mode) > RDD caching stops working in pyspark after some time > ---------------------------------------------------- > > Key: SPARK-3731 > URL: https://issues.apache.org/jira/browse/SPARK-3731 > Project: Spark > Issue Type: Bug > Components: PySpark, Spark Core > Affects Versions: 1.1.0 > Environment: Linux, 32bit, both in local mode or in standalone cluster mode > Reporter: Milan Straka > Attachments: worker.log > > > Consider a file F which when loaded with sc.textFile and cached takes up slightly more than half of free memory for RDD cache. > When in PySpark the following is executed: > 1) a = sc.textFile(F) > 2) a.cache().count() > 3) b = sc.textFile(F) > 4) b.cache().count() > and then the following is repeated (for example 10 times): > a) a.unpersist().cache().count() > b) b.unpersist().cache().count() > after some time, there are no RDD cached in memory. > Also, since that time, no other RDD ever gets cached (the worker always reports something like "WARN CacheManager: Not enough space to cache partition rdd_23_5 in memory! Free memory is 277478190 bytes.", even if rdd_23_5 is ~50MB). The Executors tab of the Application Detail UI shows that all executors have 0MB memory used (which is consistent with the CacheManager warning). > When doing the same in scala, everything works perfectly. > I understand that this is a vague description, but I do no know how to describe the problem better. -- 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