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 86FA7200C2C for ; Fri, 3 Mar 2017 12:36:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 85831160B6D; Fri, 3 Mar 2017 11:36:09 +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 CDAB8160B57 for ; Fri, 3 Mar 2017 12:36:08 +0100 (CET) Received: (qmail 59119 invoked by uid 500); 3 Mar 2017 11:36:07 -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 59110 invoked by uid 99); 3 Mar 2017 11:36:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2017 11:36:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4A8671A002A for ; Fri, 3 Mar 2017 11:36:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.547 X-Spam-Level: X-Spam-Status: No, score=-1.547 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ByGcJr4wY1ab for ; Fri, 3 Mar 2017 11:36:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 00C5A5F58E for ; Fri, 3 Mar 2017 11:36:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id ADE0BE04E7 for ; Fri, 3 Mar 2017 11:35:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 652CB2415C for ; Fri, 3 Mar 2017 11:35:45 +0000 (UTC) Date: Fri, 3 Mar 2017 11:35:45 +0000 (UTC) From: "Genmao Yu (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (SPARK-19807) Add reason for cancellation when a stage is killed using web UI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 03 Mar 2017 11:36:09 -0000 [ https://issues.apache.org/jira/browse/SPARK-19807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15894185#comment-15894185 ] Genmao Yu edited comment on SPARK-19807 at 3/3/17 11:35 AM: ------------------------------------------------------------ !https://cloud.githubusercontent.com/assets/7402327/23549702/6a0c93f6-0048-11e7-8a3f-bf58befb887b.png! Do you mean the "Job 0 cancelled" in picture? was (Author: unclegen): !https://cloud.githubusercontent.com/assets/7402327/23549478/70888646-0047-11e7-8e2c-e64a3db43711.png! Do you mean the "Job 0 cancelled" in picture? > Add reason for cancellation when a stage is killed using web UI > --------------------------------------------------------------- > > Key: SPARK-19807 > URL: https://issues.apache.org/jira/browse/SPARK-19807 > Project: Spark > Issue Type: Improvement > Components: Web UI > Affects Versions: 2.1.0 > Reporter: Jacek Laskowski > Priority: Trivial > > When a user kills a stage using web UI (in Stages page), {{StagesTab.handleKillRequest}} requests {{SparkContext}} to cancel the stage without giving a reason. {{SparkContext}} has {{cancelStage(stageId: Int, reason: String)}} that Spark could use to pass the information for monitoring/debugging purposes. > {code} > scala> sc.range(0, 5, 1, 1).mapPartitions { nums => { Thread.sleep(60 * 1000); nums } }.count > {code} > Use http://localhost:4040/stages/ and click Kill. > {code} > org.apache.spark.SparkException: Job 0 cancelled because Stage 0 was cancelled > at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1486) > at org.apache.spark.scheduler.DAGScheduler.handleJobCancellation(DAGScheduler.scala:1426) > at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleStageCancellation$1.apply$mcVI$sp(DAGScheduler.scala:1415) > at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleStageCancellation$1.apply(DAGScheduler.scala:1408) > at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleStageCancellation$1.apply(DAGScheduler.scala:1408) > at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33) > at scala.collection.mutable.ArrayOps$ofInt.foreach(ArrayOps.scala:234) > at org.apache.spark.scheduler.DAGScheduler.handleStageCancellation(DAGScheduler.scala:1408) > at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.doOnReceive(DAGScheduler.scala:1670) > at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1656) > at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1645) > at org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48) > at org.apache.spark.scheduler.DAGScheduler.runJob(DAGScheduler.scala:628) > at org.apache.spark.SparkContext.runJob(SparkContext.scala:2019) > at org.apache.spark.SparkContext.runJob(SparkContext.scala:2040) > at org.apache.spark.SparkContext.runJob(SparkContext.scala:2059) > at org.apache.spark.SparkContext.runJob(SparkContext.scala:2084) > at org.apache.spark.rdd.RDD.count(RDD.scala:1158) > ... 48 elided > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org