Hi,

I am following instructions here 
(https://cwiki.apache.org/Hive/hiveclient.html#HiveClient-JDBCClientSampleCode) 
to use JDBC to connect to Hive. And I am also able to run queries via JDBC, 
just fine.

However, I notice that the JDBC connection is created as follows - using "" for 
both the username and the password:

   Connection con = 
DriverManager.getConnection("jdbc:hive://localhost:10000/default", "", "");

Changing the username and/or the password seems to have no effect (also 
confirmed here: https://cwiki.apache.org/Hive/hivejdbcinterface.html).

So is there a way to authenticate via username/password (or anything else), 
while using the Hive JDBC client? If that is not possible right now, are there 
any plans to add that in the future? Any pointers/comments are much appreciated.

Thanks,
Sriram

Reply via email to