[ https://issues.apache.org/jira/browse/HIVE-18906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16461535#comment-16461535 ]
BELUGA BEHR commented on HIVE-18906: ------------------------------------ Thank you [~asinkovits] for your interest # We should be able to determine the database type from the JDBC connection string (jdbc:mysql://) or perhaps from the driver class definition (com.mysql.jdbc.Driver).. This would not require us to make a connection to determine the database type. In Cloudera Manager, there is a configuration "Hive Metastore Database Type" that tells us the vendor information without making a connection. # Are you sure this can be set at the session level? This is a HMS optimization, not HS2. That would be fine if it's logged at the session level if required. # No, there should only be a warning for the cluster administrator if the service is configured incorrectly from the get-go. If it's possible to override this per-session, then there's probably a reason for it and I don't need to be told it's a problem. There must already be a known problem if I have to disable it manually. # I think a _debug_ message telling me that the optimization is being used is appropriate and then providing the actual SQL statement as _trace_ logging is helpful if I require additional, deeper, troubleshooting. > Lower Logging for "Using direct SQL" > ------------------------------------ > > Key: HIVE-18906 > URL: https://issues.apache.org/jira/browse/HIVE-18906 > Project: Hive > Issue Type: Improvement > Reporter: BELUGA BEHR > Assignee: Antal Sinkovits > Priority: Trivial > Labels: noob > > https://github.com/apache/hive/blob/4047befe48c8f762c58d8854e058385c1df151c6/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java#L181 > {code} > 2018-02-26 14:32:50,620 INFO > org.apache.hadoop.hive.metastore.MetaStoreDirectSql: [pool-4-thread-199]: > Using direct SQL, underlying DB is MYSQL > 2018-02-26 14:33:09,566 INFO > org.apache.hadoop.hive.metastore.MetaStoreDirectSql: [pool-4-thread-172]: > Using direct SQL, underlying DB is MYSQL > 2018-02-26 14:33:43,170 INFO > org.apache.hadoop.hive.metastore.MetaStoreDirectSql: [pool-4-thread-172]: > Using direct SQL, underlying DB is MYSQL > 2018-02-26 14:33:46,301 INFO > org.apache.hadoop.hive.metastore.MetaStoreDirectSql: [pool-4-thread-199]: > Using direct SQL, underlying DB is MYSQL > 2018-02-26 14:34:16,966 INFO > org.apache.hadoop.hive.metastore.MetaStoreDirectSql: [pool-4-thread-172]: > Using direct SQL, underlying DB is MYSQL > 2018-02-26 14:34:18,072 INFO > org.apache.hadoop.hive.metastore.MetaStoreDirectSql: [pool-4-thread-196]: > Using direct SQL, underlying DB is MYSQL > 2018-02-26 14:34:25,064 INFO > org.apache.hadoop.hive.metastore.MetaStoreDirectSql: [pool-4-thread-199]: > Using direct SQL, underlying DB is MYSQL > 2018-02-26 14:34:51,781 INFO > org.apache.hadoop.hive.metastore.MetaStoreDirectSql: [pool-4-thread-172]: > Using direct SQL, underlying DB is MYSQL > 2018-02-26 14:35:04,685 INFO > org.apache.hadoop.hive.metastore.MetaStoreDirectSql: [pool-4-thread-199]: > Using direct SQL, underlying DB is MYSQL > 2018-02-26 14:35:26,689 INFO > org.apache.hadoop.hive.metastore.MetaStoreDirectSql: [pool-4-thread-172]: > Using direct SQL, underlying DB is MYSQL > {code} > I wouldn't mind knowing this information when the service starts up and > detects that there is a Direct SQL compatible database, but I don't need to > know about this every time. > Please lower to _debug_ level logging and parameterize with SLF4J. Direct > SQL is a performance thing and not something I care about during the normal > course of operation (unless there is an error which would presumably be > covered by an _error_ logging message). -- This message was sent by Atlassian JIRA (v7.6.3#76005)