- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
JDBC string for HIVE
- Labels:
-
Apache Hive
Created ‎01-16-2016 04:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- hive-jdbc.jar
From /usr/hdp/current/hadoop-client
- hadoop-common.jar
- hadoop-auth.jar
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎01-16-2016 06:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- hive-jdbc.jar
From /usr/hdp/current/hadoop-client
- hadoop-common.jar
- hadoop-auth.jar
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It worked !! Great !!! Thanks a lot Ancil.
Created ‎01-16-2016 11:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
