miklosgergely commented on a change in pull request #1963:
URL: https://github.com/apache/hive/pull/1963#discussion_r573049911



##########
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:
       This should be at least info, or rather warn level. 




----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to