You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Bharath Ganesh <bh...@gmail.com> on 2012/02/07 13:31:29 UTC

JDBC Driver support for multiple database/schema

Hello,

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
https://cwiki.apache.org/Hive/hiveclient.html :
*
*
*"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!

Thanks,
Bharath