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

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

                Author: ASF GitHub Bot
            Created on: 11/Mar/21 16:18
            Start Date: 11/Mar/21 16:18
    Worklog Time Spent: 10m 
      Work Description: belugabehr commented on a change in pull request #1963:
URL: https://github.com/apache/hive/pull/1963#discussion_r592501626



##########
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:
       I'd hate to tie anything to the session state.
   ```java
         // Need to remove this static hack. But this is the way currently to 
get a session.
         SessionState ss = SessionState.get();
   ```
   
   Let me see what else we can do.




----------------------------------------------------------------
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:
us...@infra.apache.org


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

    Worklog Id:     (was: 564710)
    Time Spent: 1h 50m  (was: 1h 40m)

> 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 50m
>  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)

Reply via email to