# Hive JDBC

**URL:** <https://discuss.elastic.co/t/hive-jdbc/107478>\
**Category:** Logstash\
**Created:** [November 14, 2017, 2:00am UTC](https://discuss.elastic.co/t/hive-jdbc/107478 "2017-11-14T02:00:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Bursik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeff_bursik/32/23626_2.png) [@Jeff\_Bursik](https://discuss.elastic.co/u/Jeff_Bursik)\
**Post date:** [November 14, 2017, 2:00am UTC](https://discuss.elastic.co/t/hive-jdbc/107478/1 "2017-11-14T02:00:42Z")

</div>

I've seen a couple posts asking for a Hive JDBC Input configuration however I haven't seen a successful configuration posted. Im curious what JDBC Driver is needed to make the Hive connection work?

Thanks!

---

<div class="post-metadata">

**Author:** ![Jeff\_Bursik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeff_bursik/32/23626_2.png) [@Jeff\_Bursik](https://discuss.elastic.co/u/Jeff_Bursik)\
**Post date:** [November 14, 2017, 3:19pm UTC](https://discuss.elastic.co/t/hive-jdbc/107478/2 "2017-11-14T15:19:23Z")

</div>

Just to help anyone that finds this, here is the configuration and dependencies I needed:

```
 input {
    jdbc {
       jdbc_driver_library => "hive-jdbc-2.0.0.jar,hive2.jar,hive-common-2.3.1.jar,hadoop-core-1.2.1-0.jar"
       jdbc_driver_class => "org.apache.hive.jdbc.HiveDriver"
       jdbc_connection_string => ""
    }
 }

 output {
  # Publish out in command line
  stdout { codec => json }
 }
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 12, 2017, 3:19pm UTC](https://discuss.elastic.co/t/hive-jdbc/107478/3 "2017-12-12T15:19:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
