Return-Path: X-Original-To: apmail-crunch-user-archive@www.apache.org Delivered-To: apmail-crunch-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77D2E1769B for ; Thu, 3 Sep 2015 18:08:37 +0000 (UTC) Received: (qmail 56015 invoked by uid 500); 3 Sep 2015 18:08:37 -0000 Delivered-To: apmail-crunch-user-archive@crunch.apache.org Received: (qmail 55972 invoked by uid 500); 3 Sep 2015 18:08:37 -0000 Mailing-List: contact user-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@crunch.apache.org Delivered-To: mailing list user@crunch.apache.org Received: (qmail 55962 invoked by uid 99); 3 Sep 2015 18:08:37 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2015 18:08:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CF4ADF146A for ; Thu, 3 Sep 2015 18:08:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.13 X-Spam-Level: *** X-Spam-Status: No, score=3.13 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 2QJqq_miIu_C for ; Thu, 3 Sep 2015 18:08:28 +0000 (UTC) Received: from mail-yk0-f173.google.com (mail-yk0-f173.google.com [209.85.160.173]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id DA97D42F35 for ; Thu, 3 Sep 2015 18:08:27 +0000 (UTC) Received: by ykei199 with SMTP id i199so51773114yke.0 for ; Thu, 03 Sep 2015 11:08:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=M/s7XbYCuIMQ9FjqGnYWcdqU21SdaY/cKhTGnD0ajyw=; b=ns9OoUGUcJ5Be18ijJADIwQX67XoYNj8HtIIbEAp4R42uHc8F2JlJz+V0sAIFjIvCB M6TdWC1p/yz5Zpu7wRmL8q64jW26MgdrAexP7zVimxS4ziGsrOha3x6JjoJkUWG0CeCl Gt/wn86FDS2HmjtIv5r1F83BK7Wto933NX6F6byCdAYUrgGmd+UyTisGOlD3XbEQkQYx YVP01CPBgxApKa0k81BDcgr3nj0jEaqLaWCRjANVEFH/cQqK2gm9bGEsXxfV03RqICpl lqcKiQumLu8XwfBHhXStjoWhU/1B06leVb+zjvaISEP8Q6/dIFEolSSMi1stUmtcN09Y vNEA== X-Received: by 10.13.246.131 with SMTP id g125mr40533163ywf.75.1441303701006; Thu, 03 Sep 2015 11:08:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nithin Asokan Date: Thu, 03 Sep 2015 18:08:11 +0000 Message-ID: Subject: Re: Spark accumulators To: user@crunch.apache.org Content-Type: multipart/alternative; boundary=94eb2c0357501caf9b051edbabfa --94eb2c0357501caf9b051edbabfa Content-Type: text/plain; charset=UTF-8 Thank you Micah. With the patch I'm able to see accumulators listed on my Spark application. On Thu, Sep 3, 2015 at 7:49 AM Micah Whitacre wrote: > Nithin logged https://issues.apache.org/jira/browse/CRUNCH-558 to track > this work. Also added a patch for the change you proposed, want to try it > out and see if that works for you? > > On Thu, Sep 3, 2015 at 7:25 AM, Nithin Asokan wrote: > >> We are currently testing a few capabilities using Spark and one thing we >> noticed in Spark is they don't list any user defined accumulators on web >> UI. >> >> On MapReduce I would imagine counters being displayed on the job page, >> however on a SparkPipeline I was only able to pull counter information from >> PipelineResult#getStageResult(). >> >> I think the reason these accumulators are not visible on web UI is >> because crunch does not name these accumulators. Spark expects an >> accumulator to have a name to be visible on the UI. >> >> >> https://github.com/apache/crunch/blob/apache-crunch-0.13.0/crunch-spark/src/main/java/org/apache/crunch/impl/spark/SparkRuntime.java#L125-L126 >> >> >> https://github.com/apache/spark/blob/v1.4.1/core/src/main/scala/org/apache/spark/api/java/JavaSparkContext.scala#L616-L624 (accumulator >> API with Name) >> >> I would like to know if it's possible in crunch to name these >> accumulators so they are available in web UI. This will give us an >> experience where users can monitor/watch accumulators from web UI to obtain >> key information about their jobs. >> >> Thanks, >> Nithin >> > > --94eb2c0357501caf9b051edbabfa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you Micah. With the patch I'm able to see accumu= lators listed on my Spark application. =C2=A0

On Thu, Sep 3, 2015 at 7:49 AM Micah Whitacre <mkwhitacre@gmail.com> wrote:
Nithin logged=C2=A0<= a href=3D"https://issues.apache.org/jira/browse/CRUNCH-558" target=3D"_blan= k">https://issues.apache.org/jira/browse/CRUNCH-558 to track this work.= =C2=A0 Also added a patch for the change you proposed, want to try it out a= nd see if that works for you?

On Thu, Sep 3, 2015 at 7:25 AM, Nithin Asokan <anith= in19@gmail.com> wrote:
We are currently testing a few capabilities using Spark a= nd one thing we noticed in Spark is they don't list any user defined ac= cumulators on web UI.=C2=A0

On MapReduce I wou= ld imagine counters being displayed on the job page, however on a SparkPipe= line I was only able to pull counter information from PipelineResult#getSta= geResult().=C2=A0

I think the reason these acc= umulators are not visible on web UI is because crunch does not name these a= ccumulators. Spark expects an accumulator to have a name to be visible on t= he UI.



I would like to know if it&= #39;s possible in crunch to name these accumulators so they are available i= n web UI. This will give us an experience where users can monitor/watch acc= umulators from web UI to obtain key information about their jobs.=C2=A0

Thanks,
Nithin

--94eb2c0357501caf9b051edbabfa--