wForget commented on code in PR #6919:
URL: https://github.com/apache/kyuubi/pull/6919#discussion_r1955745574
##########
kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/Utils.java:
##########
@@ -68,6 +68,18 @@ public class Utils {
public static final Pattern KYUUBI_OPERATION_HINT_PATTERN =
Pattern.compile("^__kyuubi_operation_result_(.*)__=(.*)",
Pattern.CASE_INSENSITIVE);
+ public static final String CLIENT_IP_ADDRESS;
+
+ static {
+ String localIpAddress = null;
+ try {
+ localIpAddress = InetAddress.getLocalHost().getHostAddress();
+ } catch (UnknownHostException e) {
+ LOG.debug("Error getting Kyuubi local client ip address", e);
+ }
+ CLIENT_IP_ADDRESS = localIpAddress;
Review Comment:
How about `unknown`?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]