[ https://issues.apache.org/jira/browse/HIVE-24758?focusedWorklogId=550331&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-550331 ]
ASF GitHub Bot logged work on HIVE-24758: ----------------------------------------- Author: ASF GitHub Bot Created on: 09/Feb/21 17:04 Start Date: 09/Feb/21 17:04 Worklog Time Spent: 10m Work Description: belugabehr commented on a change in pull request #1963: URL: https://github.com/apache/hive/pull/1963#discussion_r573064500 ########## File path: ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTask.java ########## @@ -351,6 +356,17 @@ private String getUserNameForGroups(SessionState ss) { return ss.getUserName(); } + private static String getHostNameIP() { + try { + InetAddress ip = InetAddress.getLocalHost(); + String hostname = ip.getHostName(); + return String.format("%s (%s)", hostname, ip.getHostAddress()); + } catch (UnknownHostException e) { + LOG.debug("Unable to determine hostname", e); Review comment: @miklosgergely The issue here is that anything that logs to this logger gets forwarded to the user's connection. I don't want to print errors and stack traces to their connection. If user starts getting "unknown" responses, they can enable debug logging and get it. ---------------------------------------------------------------- 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: 550331) Time Spent: 0.5h (was: 20m) > 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: 0.5h > 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)