Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hive Jdbc connect to CDP public cloud


Hive Jdbc connect to CDP public cloud

New Contributor
I want to connect from local PC to HIVE in data engineering cluster in CDP public cloud. I'tried the following inn Java (I've "HiveJDBC41.jar" in calsspath):





 conn = DriverManager.getConnection("jdbc:hive2://"); 





and i get the following error:





Could not open client transport with JDBC Uri: jdbc:hive2:// Connection timed out: connect at org.apache.hive.jdbc.HiveConnection.<init>( at org.apache.hive.jdbc.HiveDriver.connect( at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) 





What shoud i do? Which are the connection details?
Thank you and best.

Re: Hive Jdbc connect to CDP public cloud


Hello @tresk ,


thank you for reaching out to the Community.


Wondering if this is the doc you were looking for:

"The JDBC connection string for connecting to a remote Hive client requires a host, port, and Hive database name. You can optionally specify a transport type and authentication."



Please let us know!


Thank you:


Ferenc Erdelyi, Technical Solutions Manager

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:

Don't have an account?
Coming from Hortonworks? Activate your account here