Git Product home page Git Product logo

hive-jdbc-uber-jar's Introduction

Overview

Sometimes you want to connect your favorite database query or visualization tool to Hive. I've found that this can be quite cumbersome, typically requiring you to copy jars from the Hadoop cluster to some place locally that can be read by your tool. The goal of this simple maven project is to easily pull the required jars into a single place locally and create an "uber" or "standalone" jar that can be referenced by any JDBC compliant tool.

Please note this project only supports connecting to a remote hiveserver in "non-kerberos" mode. Additional pom changes would be required to support "kerberos secure" mode and "embedded" mode. See Hiveserver2 Client Documentation for recommended jar additions.

You can download the latest binaries from the releases page: https://github.com/timveil/hive-jdbc-uber-jar/releases

๐Ÿ˜ Updated for HDP 2.5.0.0 - 9/12/16 ๐Ÿ˜

DbVisualizer (as of version 9.2.15)

Below is an example configuration using DbVisualizer:

  1. Under "Tools" > "Driver Manager..." hit the "Create a new driver" button.

  2. Fill in the information as seen below. For the "Driver File Paths" you are pointing to the hive-jdbc-uber-x.jar created above.

  1. Next create a new connection. In this case I'm pointing to Hive on my Hortonworks Sandbox.

IntelliJ Data Grip (as of version 2016.1)

Below is an example configuration using IntelliJ Data Grip:

  1. Under "File" > "Data Sources...", first create a new Driver.

  1. Then create a new Project Data Source using the new Driver.

  1. After creating the Project Data Source, test the connection. You should see the following:

How to Build

To build locally, you must have Maven installed and properly configured. After that it's as simple as running mvn:package. A file called hive-jdbc-uber-x.jar will be created in your target directory. The newly created jar will have the Hive JDBC driver as well as all required dependencies.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.