[
https://issues.apache.org/jira/browse/HIVE-12235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Szehon Ho updated HIVE-12235:
-----------------------------
Attachment: HIVE-12235.patch
Attaching a patch.
This allows HiveConnection's useful info logs to make it to the beeline
console, but only in the case of zookeeper dynamic service discovery mode.
Attaching the new output:
{noformat}
#beeline -u
'jdbc:hive2://host-1:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2'
scan complete in 3ms
Connecting to
jdbc:hive2://host-1:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
15/10/21 15:56:34 [main]: INFO jdbc.HiveConnection: Attempting client transport
with JDBC Uri:
jdbc:hive2://host-5:10000/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
15/10/21 15:56:34 [main]: INFO jdbc.HiveConnection: Could not open client
transport with JDBC Uri:
jdbc:hive2://host-5:10000/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
15/10/21 15:56:34 [main]: INFO jdbc.HiveConnection: Attempting client transport
with JDBC Uri:
jdbc:hive2://host-1:10000/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
15/10/21 15:56:34 [main]: INFO jdbc.HiveConnection: Connected to JDBC Uri:
jdbc:hive2://host-1:10000/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
Connected to: Apache Hive (version 1.1.0-cdh5.5.1-SNAPSHOT)
Driver: Hive JDBC (version 1.1.0-cdh5.7.0-SNAPSHOT)
Transaction isolation: TRANSACTION_REPEATABLE_READ
Beeline version 1.1.0-cdh5.7.0-SNAPSHOT by Apache Hive
{noformat}
Another alternative might have been to allow the user to configure the log4j,
but see HIVE-10502, where we decided that it's better for the log4j file to be
bundled with beeline to reduce the number of knobs.
> Improve beeline logging for dynamic service discovery
> -----------------------------------------------------
>
> Key: HIVE-12235
> URL: https://issues.apache.org/jira/browse/HIVE-12235
> Project: Hive
> Issue Type: Improvement
> Affects Versions: 1.2.1
> Reporter: Szehon Ho
> Assignee: Szehon Ho
> Attachments: HIVE-12235.patch
>
>
> It maybe nice to see which host it tried to, and ended up, connecting to.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)