Created on 08-04-2017 12:25 AM - edited 08-17-2019 08:57 PM
ERROR: Url i used to connect to beeline is jdbc:hihve2://hostname:10000/default .I am using oracle as my hive metastore database. ojdbc6 jar is downloaded and kept at /usr/hdp/2.../hive/lib.My transport mode is binary.After adding these jars when i am logged in as root i can connect to beeline with my ldap uid and pwd. But when i am logged with user id in linux machine and try to connect to beeline. I am getting the same error again
Created 08-04-2017 04:14 PM
The above error is more indicative of a corrupted instal of the hive client. You mentioned that you are able to connect with LDAP userid and password. In the case where you are getting the error did you launch the beeline cli from the same machine where you launched when you were successfully able to connect using LDAP credentials?
Created 08-04-2017 01:21 AM
It's a wrong jdbc class name for uri.
Try to use this "beeline jdbc:hive2://hostname:10000/default" instead of.
Created 08-04-2017 01:45 AM
what i usually do is beeline >
!connect jdbc:hive2://hostname:port/default with " " and withh out.I tried both but it did not work.
Created 08-04-2017 03:47 AM
Then, check the hostname which is installed with hiveserver2 on a node.
Created 08-04-2017 04:07 AM
Created 08-04-2017 03:44 PM
I have given url correctly. But it doesn't work and still stays the same error
Created 08-04-2017 04:14 PM
The above error is more indicative of a corrupted instal of the hive client. You mentioned that you are able to connect with LDAP userid and password. In the case where you are getting the error did you launch the beeline cli from the same machine where you launched when you were successfully able to connect using LDAP credentials?
Created 08-04-2017 05:16 PM
yes @Deepesh,I launched both beeline from the same machine. if there is a corrupted install of hive client, please suggest me a solution as in what steps needs to be taken. Also I am using ambari 2.2.2.0 and hdp 2.4.2... when i click on hive service, I do not see the jdbc url down and also the quick links option. Thanks
Created 08-04-2017 06:22 PM
I am assuming this is an unsecure cluster, is that right?
On that machine, can you put out the complete console log from the terminal and i would suggest just starting the beeline and then put the connect statment:
$ beeline ... > !connect jdbc:hive2://<hivehost>:10000 <user> <pwd>
Created 08-04-2017 06:30 PM
I do not know what went wrong but i removed the hive client and installed it again and it worked this time. Thanks