hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bharath Ganesh <>
Subject JDBC Driver support for multiple database/schema
Date Tue, 07 Feb 2012 12:31:29 GMT

While using the JDBC driver on 0.7.1, there seems to be an issue around
support for multiple databases.

According to Hive JDBC documentation at :
*"For standalone server, uri is "jdbc:hive://host:port/dbname" where host
and port are determined by where the hive server is run. For example,
"jdbc:hive://localhost:10000/default". Currently, the only dbname supported
is "default". *"

Was there any specific reason to not support non-default databases? The
obvious way for me to get it working is to patch the connection object,
parse the connection string, pick the database name and issue a "USE
<db-name>" query as part of initializing the connection. Do you think this
is a reasonable way to do this?

Would be happy to have your suggestions!


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message