You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/03/02 13:34:00 UTC

[jira] [Work logged] (HIVE-24758) Log Tez Task DAG ID, DAG Session ID, HS2 Hostname

     [ https://issues.apache.org/jira/browse/HIVE-24758?focusedWorklogId=559954&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-559954 ]

ASF GitHub Bot logged work on HIVE-24758:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Mar/21 13:33
            Start Date: 02/Mar/21 13:33
    Worklog Time Spent: 10m 
      Work Description: pgaref commented on a change in pull request #1963:
URL: https://github.com/apache/hive/pull/1963#discussion_r585566958



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTask.java
##########
@@ -236,6 +239,10 @@ public int execute() {
           throw new HiveException("Operation cancelled");
         }
 
+        // Log all the info required to find the various logs for this query
+        LOG.info("HS2 Host: [{}], Query ID: [{}], Dag ID: [{}], DAG Session ID: [{}]", getHostNameIP(), queryId,

Review comment:
       Hey @belugabehr  -- taking another look here and seems like SessionState could do the job.
   What about SessionState.getHiveServer2Host() ? 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 559954)
    Time Spent: 1h 40m  (was: 1.5h)

> Log Tez Task DAG ID, DAG Session ID, HS2 Hostname
> -------------------------------------------------
>
>                 Key: HIVE-24758
>                 URL: https://issues.apache.org/jira/browse/HIVE-24758
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: David Mollitor
>            Assignee: David Mollitor
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> In order to get the logs for a particular query, submitted to Tez on YARN, the following pieces of information are required:
> * YARN Application ID
> * TEZ DAG ID
> * HS2 Host that ran the job
> Include this information in TezTask output.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)