FAQ
Repository: hive
Updated Branches:
   refs/heads/master cd9185cc4 -> db4bdb3f1


HIVE-12970 : Add total open connections in HiveServer2 (Shinichi Yamashita via Ashutosh Chauhan)

Signed-off-by: Ashutosh Chauhan <hashutosh@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/db4bdb3f
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/db4bdb3f
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/db4bdb3f

Branch: refs/heads/master
Commit: db4bdb3f16dfd9a69f0210df43f4e2a658e11453
Parents: cd9185c
Author: Shinichi Yamashita <yamashitasni@oss.nttdata.co.jp>
Authored: Tue Feb 2 05:13:00 2016 -0800
Committer: Ashutosh Chauhan <hashutosh@apache.org>
Committed: Tue Feb 2 11:01:05 2016 -0800

----------------------------------------------------------------------
  .../apache/hadoop/hive/common/metrics/common/MetricsConstant.java | 1 +
  .../java/org/apache/hive/service/cli/thrift/ThriftCLIService.java | 1 +
  2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/db4bdb3f/common/src/java/org/apache/hadoop/hive/common/metrics/common/MetricsConstant.java
----------------------------------------------------------------------
diff --git a/common/src/java/org/apache/hadoop/hive/common/metrics/common/MetricsConstant.java b/common/src/java/org/apache/hadoop/hive/common/metrics/common/MetricsConstant.java
index deca7e8..e5247c8 100644
--- a/common/src/java/org/apache/hadoop/hive/common/metrics/common/MetricsConstant.java
+++ b/common/src/java/org/apache/hadoop/hive/common/metrics/common/MetricsConstant.java
@@ -28,6 +28,7 @@ public class MetricsConstant {

    public static final String OPEN_CONNECTIONS = "open_connections";
    public static final String OPEN_OPERATIONS = "open_operations";
+ public static final String CUMULATIVE_CONNECTION_COUNT = "cumulative_connection_count";

    public static final String METASTORE_HIVE_LOCKS = "metastore_hive_locks";
    public static final String ZOOKEEPER_HIVE_SHAREDLOCKS = "zookeeper_hive_sharedlocks";

http://git-wip-us.apache.org/repos/asf/hive/blob/db4bdb3f/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java b/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
index 5c8fa3c..d9a9e3b 100644
--- a/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
+++ b/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
@@ -159,6 +159,7 @@ public abstract class ThriftCLIService extends AbstractService implements TCLISe
          if (metrics != null) {
            try {
              metrics.incrementCounter(MetricsConstant.OPEN_CONNECTIONS);
+ metrics.incrementCounter(MetricsConstant.CUMULATIVE_CONNECTION_COUNT);
            } catch (Exception e) {
              LOG.warn("Error Reporting JDO operation to Metrics system", e);
            }

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedFeb 2, '16 at 7:02p
activeFeb 2, '16 at 7:02p
posts1
users1
websitehive.apache.org

1 user in discussion

Hashutosh: 1 post

People

Translate

site design / logo © 2021 Grokbase