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 D8495200B78 for ; Fri, 19 Aug 2016 01:07:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D6CB6160AB7; Thu, 18 Aug 2016 23:07:10 +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 2A151160AAE for ; Fri, 19 Aug 2016 01:07:10 +0200 (CEST) Received: (qmail 20095 invoked by uid 500); 18 Aug 2016 23:07:09 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 20079 invoked by uid 99); 18 Aug 2016 23:07:08 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2016 23:07:08 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 96C2A2CC77F; Thu, 18 Aug 2016 23:07:07 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============5063278465871358013==" MIME-Version: 1.0 Subject: Re: Review Request 51193: HIVE-14358: Add metrics for number of queries executed for each execution engine (mr, spark, tez) From: Barna Zsombor Klara To: Sergio Pena , Lenni Kuff , Mohit Sabharwal Cc: Barna Zsombor Klara , Peter Vary , hive Date: Thu, 18 Aug 2016 23:07:07 -0000 Message-ID: <20160818230707.26606.35564@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Barna Zsombor Klara X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/51193/ X-Sender: Barna Zsombor Klara References: <20160818230017.25630.15017@reviews.apache.org> In-Reply-To: <20160818230017.25630.15017@reviews.apache.org> X-ReviewBoard-Diff-For: ql/src/test/org/apache/hadoop/hive/ql/exec/mr/TestMapRedTask.java X-ReviewBoard-Diff-For: ql/src/test/org/apache/hadoop/hive/ql/exec/mr/TestMapredLocalTask.java X-ReviewBoard-Diff-For: ql/src/test/org/apache/hadoop/hive/ql/exec/spark/TestSparkTask.java Reply-To: Barna Zsombor Klara X-ReviewRequest-Repository: hive-git archived-at: Thu, 18 Aug 2016 23:07:11 -0000 --===============5063278465871358013== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/51193/ ----------------------------------------------------------- (Updated Aug. 18, 2016, 11:07 p.m.) Review request for hive, Lenni Kuff, Mohit Sabharwal, and Sergio Pena. Changes ------- Removed unused import. Repository: hive-git Description ------- HIVE-14358: Add metrics for number of queries executed for each execution engine (mr, spark, tez) Diffs (updated) ----- common/src/java/org/apache/hadoop/hive/common/metrics/common/MetricsConstant.java 9dc96f9c6412720a891b5c55e2074049c893d780 ql/src/java/org/apache/hadoop/hive/ql/Driver.java 183ed829ef1742e48539f8928293d56b77bc43c8 ql/src/java/org/apache/hadoop/hive/ql/exec/Task.java eeaa54320ffaa7ba5d6ebece80a0cb4aadc1dada ql/src/java/org/apache/hadoop/hive/ql/exec/mr/MapRedTask.java ce1106d91db9ef75e7b425d5950f888bacbfb3e5 ql/src/java/org/apache/hadoop/hive/ql/exec/mr/MapredLocalTask.java ac922ce486babe042984d87a7f7442cbfc11484f ql/src/java/org/apache/hadoop/hive/ql/exec/spark/SparkTask.java 0b494aa5548f8e6ae76e2d0eea9a7afb33961f97 ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTask.java 25c4514b34fb2ed4fc8b1238059bd9dc29d2741b ql/src/test/org/apache/hadoop/hive/ql/exec/mr/TestMapRedTask.java PRE-CREATION ql/src/test/org/apache/hadoop/hive/ql/exec/mr/TestMapredLocalTask.java PRE-CREATION ql/src/test/org/apache/hadoop/hive/ql/exec/spark/TestSparkTask.java PRE-CREATION ql/src/test/org/apache/hadoop/hive/ql/exec/tez/TestTezTask.java 53672a9783b4d13c5eed4ef01f5c16af568a0a41 Diff: https://reviews.apache.org/r/51193/diff/ Testing ------- Ran the new unit tests in the ql project, everything was green. Checked that the metrics for map reduce and spark tasks were appearing and being incremented correctly using JMX. Map reduce tasks were being created by a simple select statement containing a join. Spark tasks were being created by the same query with the spark execution engine being used. The metrics were correct across several beeline connections, and were reset once the HiveServer2 was restarted. The metric collection can be turned on/off using the configuration variable "hive.server2.metrics.enabled". No errors/exceptions encountered when the metrics were disabled. NB only the root tasks are incrementing the counter since the original jira was about counting the number of queries issued against each exeution engine, so a complex query resulting in more than one task should only count as one as per my understanding. Thanks, Barna Zsombor Klara --===============5063278465871358013==--