This is an automated email from the ASF dual-hosted git repository.

abstractdog pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 96b77b2  HIVE-22140: Metrics: unify codahale metric frequency unit 
between metastore and hiveserver2 (Laszlo Bodor reviewed by Zoltan Haindrich)
96b77b2 is described below

commit 96b77b24a8bc45c041bf965b2a16b3e077dded7f
Author: Laszlo Bodor <bodorlaszlo0...@gmail.com>
AuthorDate: Tue Aug 27 13:09:39 2019 +0200

    HIVE-22140: Metrics: unify codahale metric frequency unit between metastore 
and hiveserver2 (Laszlo Bodor reviewed by Zoltan Haindrich)
    
    Signed-off-by: Laszlo Bodor <bodorlaszlo0...@gmail.com>
---
 .../main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
 
b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
index 927324e..1d5a771 100644
--- 
a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
+++ 
b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
@@ -690,7 +690,7 @@ public class MetastoreConf {
     METRICS_HADOOP2_COMPONENT_NAME("metastore.metrics.hadoop2.component", 
"hive.service.metrics.hadoop2.component", "hivemetastore",
                     "Component name to provide to Hadoop2 Metrics system."),
     METRICS_JSON_FILE_INTERVAL("metastore.metrics.file.frequency",
-        "hive.service.metrics.file.frequency", 1, TimeUnit.MINUTES,
+        "hive.service.metrics.file.frequency", 60000, TimeUnit.MILLISECONDS,
         "For json metric reporter, the frequency of updating JSON metrics 
file."),
     METRICS_JSON_FILE_LOCATION("metastore.metrics.file.location",
         "hive.service.metrics.file.location", "/tmp/report.json",

Reply via email to