Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 12-07-2016 01:58 AM
Hi - i've a kerberized HDP 2.4 cluster, and i'm trying to access Hive using Beeline.
Command used ->!connect jdbc:hive2://sandbox.hortonworks.com:10001/default;principal=hive/[email protected];hive.server2.transport.mode=binary;hive.server2.thrift.http.path=cliservice;auth=kerberos;hive.server2.thrift.sasl.qop=auth-int
Error :
Error: Could not open client transport with JDBC Uri: jdbc:hive2://sandbox.hortonworks.com:10001/default;principal=hive/[email protected];hive.server2.transport.mode=binary;hive.server2.thrift.http.path=cliservice: java.net.ConnectException: Connection refused (state=08S01,code=0)
reference ->
Pls let me know what needs to be done ?
Also, what is the username/password to be put in, on firing the command above ?
I tried leaving it blank, and also the Unix hive username/passwd, but the error is the same.
Created 12-07-2016 03:39 AM
try that !connect jdbc:hive2://sandbox.hortonworks.com:10001/default;principal=hive/[email protected]
are you sure that is the correct principal? When you use kerberos, you are using a key to provide credentials. You do not need username and password
Created 12-07-2016 03:39 AM
try that !connect jdbc:hive2://sandbox.hortonworks.com:10001/default;principal=hive/[email protected]
are you sure that is the correct principal? When you use kerberos, you are using a key to provide credentials. You do not need username and password
Created 12-07-2016 07:04 AM
- yes, the principal is correct for user - hive & I was able to use this command to connect to hive using beeline using the command you provided.. thanks for that.
command -> !connect jdbc:hive2://sandbox.hortonworks.com:10000/default;principal=hive/[email protected]