[ https://issues.apache.org/jira/browse/HIVE-24627?focusedWorklogId=534903&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-534903 ]
ASF GitHub Bot logged work on HIVE-24627: ----------------------------------------- Author: ASF GitHub Bot Created on: 12/Jan/21 15:42 Start Date: 12/Jan/21 15:42 Worklog Time Spent: 10m Work Description: miklosgergely commented on a change in pull request #1859: URL: https://github.com/apache/hive/pull/1859#discussion_r555870947 ########## File path: jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java ########## @@ -874,17 +881,21 @@ private void openSession() throws SQLException { } // set the session configuration - if (sessConfMap.containsKey(HiveAuthConstants.HS2_PROXY_USER)) { - openConf.put(HiveAuthConstants.HS2_PROXY_USER, - sessConfMap.get(HiveAuthConstants.HS2_PROXY_USER)); + final String hs2ProxyUser = sessConfMap.get(HiveAuthConstants.HS2_PROXY_USER); + if (hs2ProxyUser != null) { + LOG.debug("Set hive.server2.proxy.user: {}", hs2ProxyUser); + openConf.put(HiveAuthConstants.HS2_PROXY_USER, hs2ProxyUser); } // set create external purge table by default if (sessConfMap.containsKey(JdbcConnectionParams.CREATE_TABLE_AS_EXTERNAL)) { openConf.put("set:hiveconf:hive.create.as.external.legacy", sessConfMap.get(JdbcConnectionParams.CREATE_TABLE_AS_EXTERNAL).toLowerCase()); } - if (isHplSqlMode()) { + Review comment: I'd suggest to log out in debug level the whole oponeconf right before opening the session, instead of having a log.debug next to each set command, in a similar fashion as you log out the serverHiveConf after it is opened. ---------------------------------------------------------------- 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: 534903) Time Spent: 20m (was: 10m) > Add Debug Logging to Hive JDBC Connection > ----------------------------------------- > > Key: HIVE-24627 > URL: https://issues.apache.org/jira/browse/HIVE-24627 > Project: Hive > Issue Type: Improvement > Components: JDBC > Reporter: David Mollitor > Assignee: David Mollitor > Priority: Minor > Labels: pull-request-available > Time Spent: 20m > Remaining Estimate: 0h > > Log the following: > # Session handle > # Version Number > # Any configurations/variables set by the user at the client-side > # Dump the Hive configurations at session-start -- This message was sent by Atlassian Jira (v8.3.4#803005)