Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5555C200CAF for ; Thu, 22 Jun 2017 10:29:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 543E3160BE7; Thu, 22 Jun 2017 08:29:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BD8C2160BE5 for ; Thu, 22 Jun 2017 10:29:14 +0200 (CEST) Received: (qmail 6928 invoked by uid 500); 22 Jun 2017 08:29:14 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 6917 invoked by uid 99); 22 Jun 2017 08:29:13 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2017 08:29:13 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9834FDFA29; Thu, 22 Jun 2017 08:29:13 +0000 (UTC) From: HyukjinKwon To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark issue #18320: [SPARK-21093][R] Terminate R's worker processes in the p... Content-Type: text/plain Message-Id: <20170622082913.9834FDFA29@git1-us-west.apache.org> Date: Thu, 22 Jun 2017 08:29:13 +0000 (UTC) archived-at: Thu, 22 Jun 2017 08:29:15 -0000 Github user HyukjinKwon commented on the issue: https://github.com/apache/spark/pull/18320 **jobs with many stages**: I tested the codes below: ```R ```r df <- createDataFrame(list(list(1L, 1, "1", 0.1)), c("a", "b", "c", "d")) for(i in 0:90) { df <- (gapply(df, "a", function(key, x) { x }, schema(df))) } collect(df) ``` More iteration produced `StackOverflowError` in my local and CentOS. This created 18201 tasks with 92 stages. **jobs with long stages**: I made the change as below: ```r df <- createDataFrame(list(list(1L, 1, "1", 0.1)), c("a", "b", "c", "d")) collect(dapply(repartition(df, 8), function(x) { x }, schema(df))) ``` after manual changes as below: ```r outputCon <- socketConnection( port = port, blocking = TRUE, open = "wb", timeout = connectionTimeout) +Sys.sleep(600L) + # read the index of the current partition inside the RDD partition <- SparkR:::readInt(inputCon) ``` This took 10 mins (default cores in executors was 8). It looks both were fine. Would this address your concern enough @felixcheung? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org