Created 01-16-2016 04:12 AM
I have installed VNC server on Ambari(HDP Sandbox). From Eclipse on VNC Client, I want to query Hive database. What is the JDBC string I should use? I looked at other posts. Its very confusing. I am using HDP 2.3.2.
Please help.
Created 01-16-2016 06:38 PM
Double check that you have all the Hive JDBC jar files
FOR HDP 2.3.x
From /usr/hdp/current/hive-client/lib/ sftp or scp to your local desktop
From /usr/hdp/current/hadoop-client
User name: hive
Password: hive
I cannot remember if the Sandbox is setup with Hive run as user = false or not. Need to double check. As was indicated earlier use URL
jdbc:hive2://127.0.0.1:10000
See also the answers for a related question
Created 01-16-2016 05:24 AM
Since HDP Sandbox is on one node and you are running the eclipse also on the same node then you should be able to connect using jdbc:hive2://localhost:10000.
Created on 01-16-2016 04:53 PM - edited 08-19-2019 05:12 AM
Created 01-16-2016 06:27 PM
Please take look here. Great info on connection details for jdbc https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients
Created 01-16-2016 06:38 PM
Double check that you have all the Hive JDBC jar files
FOR HDP 2.3.x
From /usr/hdp/current/hive-client/lib/ sftp or scp to your local desktop
From /usr/hdp/current/hadoop-client
User name: hive
Password: hive
I cannot remember if the Sandbox is setup with Hive run as user = false or not. Need to double check. As was indicated earlier use URL
jdbc:hive2://127.0.0.1:10000
See also the answers for a related question
Created 01-16-2016 07:48 PM
It worked !! Great !!! Thanks a lot Ancil.
Created 01-16-2016 11:40 PM
I'd recommend to test connectivity first. You can do it with beeline tool. Once you connected to jdbc url from beeline u can continue experiments with eclipse.