FAQ
Repository: hive
Updated Branches:
   refs/heads/master 7b2f6703f -> 41fc1874b


HIVE-12545: Add sessionId and queryId logging support for methods like getCatalogs in HiveSessionImpl class (Aihua Xu, reviewed by Yongzhi Chen)


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

Branch: refs/heads/master
Commit: 41fc1874bcabed3fae32ed5fcf6fa13d25811261
Parents: 7b2f670
Author: Aihua Xu <aihuaxu@apache.org>
Authored: Fri Jan 22 15:37:37 2016 -0500
Committer: Aihua Xu <aihuaxu@apache.org>
Committed: Fri Jan 29 10:35:25 2016 -0500

----------------------------------------------------------------------
  .../src/java/org/apache/hive/service/cli/operation/Operation.java | 3 +++
  1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/41fc1874/service/src/java/org/apache/hive/service/cli/operation/Operation.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/cli/operation/Operation.java b/service/src/java/org/apache/hive/service/cli/operation/Operation.java
index 113eddf..d6ac16d 100644
--- a/service/src/java/org/apache/hive/service/cli/operation/Operation.java
+++ b/service/src/java/org/apache/hive/service/cli/operation/Operation.java
@@ -32,6 +32,7 @@ import org.apache.hadoop.hive.common.metrics.common.MetricsConstant;
  import org.apache.hadoop.hive.common.metrics.common.MetricsFactory;
  import org.apache.hadoop.hive.common.metrics.common.MetricsScope;
  import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.hive.ql.QueryPlan;
  import org.apache.hadoop.hive.ql.processors.CommandProcessorResponse;
  import org.apache.hadoop.hive.ql.session.OperationLog;
  import org.apache.hadoop.hive.ql.session.SessionState;
@@ -80,6 +81,8 @@ public abstract class Operation {

    protected Operation(HiveSession parentSession, OperationType opType, boolean runInBackground) {
      this(parentSession, null, opType, runInBackground);
+ // Generate a queryId for the operation if no queryId is provided
+ confOverlay.put(HiveConf.ConfVars.HIVEQUERYID.varname, QueryPlan.makeQueryId());
   }

    protected Operation(HiveSession parentSession, Map<String, String> confOverlay, OperationType opType, boolean runInBackground) {

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcommits @
categorieshive, hadoop
postedJan 29, '16 at 3:37p
activeJan 29, '16 at 3:37p
posts1
users1
websitehive.apache.org

1 user in discussion

Aihuaxu: 1 post

People

Translate

site design / logo © 2021 Grokbase