<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DB Connect 3 Hive Connection in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339724#M40975</link>
    <description>&lt;P&gt;Hi James, Can you share what your driver directory looks like?&lt;BR /&gt;
What files you have under the directory  /opt/splunk/etc/apps/splunk_app_db_connect/driver   ?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:45:29 GMT</pubDate>
    <dc:creator>rdagan_splunk</dc:creator>
    <dc:date>2020-09-29T15:45:29Z</dc:date>
    <item>
      <title>DB Connect 3 Hive Connection</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339723#M40974</link>
      <description>&lt;P&gt;Hey, &lt;/P&gt;

&lt;P&gt;We are trying to connect "DB connect 3" to our Hive DB. Unfortunately I'm running into some issues. &lt;/P&gt;

&lt;P&gt;I have followed the instructions from this link, but I am still facing issues: &lt;A href="https://www.splunk.com/blog/2015/02/25/splunk-db-connect-cloudera-hive-jdbc-connector.html" target="_blank"&gt;https://www.splunk.com/blog/2015/02/25/splunk-db-connect-cloudera-hive-jdbc-connector.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Our Hive instance is on version 1.2.1. I am attempting to use both the Hive 1.2.1 and 2.5.6 JDBC drivers, I get the same error from both sets of drivers. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The JDBC URL I'm using&lt;/STRONG&gt; &lt;BR /&gt;
jdbc:hive2://{IP}:{Port}/default&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The errror - I have looked through the Jar file and this Class is in there&lt;/STRONG&gt;&lt;BR /&gt;
io.dropwizard.jersey.errors.LoggingExceptionMapper - Error handling a request: d5f34034d981f17d&lt;BR /&gt;
java.lang.NoClassDefFoundError: Could not initialize class com.cloudera.hive.hive.core.Hive2JDBCDriver&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;My config entry in db_connection_types.conf&lt;BR /&gt;
- attempt using different jar hive-jdbc-1.2.1.jar\org\apache\hive\jdbc\HiveDriver&lt;/STRONG&gt;&lt;BR /&gt;
[hive3]&lt;BR /&gt;
displayName = Hive Server 3&lt;BR /&gt;
jdbcDriverClass = org.apache.hive.jdbc.HiveDriver&lt;BR /&gt;
defaultPort = 10001&lt;BR /&gt;
connectionUrlFormat = jdbc:hive2://{0}:{1}/{2}&lt;BR /&gt;
defaultSchema = default&lt;BR /&gt;
defaultCatalogName = default&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;Attempt using HiveJDBC4.jar  *&lt;/EM&gt;&lt;BR /&gt;
[hive4]&lt;BR /&gt;
displayName = Hive Server 4&lt;BR /&gt;
dbcDriverClass = com.cloudera.hive.jdbc4.HS1Driver&lt;BR /&gt;
defaultPort = 10001&lt;BR /&gt;
connectionUrlFormat = jdbc:hive2://{0}:{1}/{2}&lt;BR /&gt;
defaultSchema = default&lt;BR /&gt;
defaultCatalogName = default&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;
James&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:47:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339723#M40974</guid>
      <dc:creator>jamesmarlowww</dc:creator>
      <dc:date>2020-09-29T15:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 3 Hive Connection</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339724#M40975</link>
      <description>&lt;P&gt;Hi James, Can you share what your driver directory looks like?&lt;BR /&gt;
What files you have under the directory  /opt/splunk/etc/apps/splunk_app_db_connect/driver   ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:45:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339724#M40975</guid>
      <dc:creator>rdagan_splunk</dc:creator>
      <dc:date>2020-09-29T15:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 3 Hive Connection</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339725#M40976</link>
      <description>&lt;P&gt;Thanks for the reply. Yup sure, these are the files&lt;/P&gt;

&lt;P&gt;-rw-r--r--. 1 splunk splunk   58160 Sep 15 12:03 commons-codec-1.4.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  575389 Sep 15 12:03 commons-collections-3.2.1.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  298829 Sep 15 12:03 commons-configuration-1.6.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  279193 Sep 15 12:03 commons-lang-2.5.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk   61829 Sep 15 12:03 commons-logging-1.2.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 3866524 Mar 15  2017 db2jcc4.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 1648200 Sep 15 12:03 guava-11.0.2.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 3431544 Sep 15 12:03 hadoop-common-2.7.1.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  292289 Sep 15 12:03 hive-common-1.2.1.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  100580 Sep 15 12:03 hive-jdbc-1.2.1.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 1511661 Sep 15 14:22 HiveJDBC4.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 1511661 Sep 14 14:22 HiveJDBC4.jar.1.0&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 5505100 Sep 15 12:03 hive-metastore-1.2.1.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 7670596 Sep 15 14:22 hive_metastore.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 1878543 Sep 15 12:03 hive-service-1.2.1.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  596600 Sep 15 14:22 hive_service.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  727567 Sep 15 12:03 httpclient-4.5.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  322234 Sep 15 12:03 httpcore-4.4.1.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  275186 Sep 15 14:22 libfb303-0.9.0.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  347531 Sep 15 14:22 libthrift-0.9.0.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  367444 Sep 15 14:22 log4j-1.2.14.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  489884 Sep 15 12:03 log4j-1.2.17.jar&lt;BR /&gt;
drwxr-xr-x. 4 splunk splunk    4096 May  4  2016 mysql-connector-java-5.1.39&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  989497 Mar 15  2017 mysql-connector-java-5.1.39-bin.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  359276 Mar 15  2017 nzjdbc3.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 3698857 Mar 15  2017 ojdbc7.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  707261 Mar 15  2017 postgresql-42.0.0.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  294796 Sep 15 14:22 ql.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk      41 Jul  5 17:38 README&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk   23671 Sep 15 14:22 slf4j-api-1.5.11.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk   32119 Sep 15 12:03 slf4j-api-1.7.10.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk    9693 Sep 15 14:22 slf4j-log4j12-1.5.11.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk    8869 Sep 15 12:03 slf4j-log4j12-1.7.5.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  653996 Mar 16  2017 sqljdbc42.jar&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 1307923 Sep 15 14:22 TCLIServiceClient.jar&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:48:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339725#M40976</guid>
      <dc:creator>jamesmarlowww</dc:creator>
      <dc:date>2020-09-29T15:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 3 Hive Connection</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339726#M40977</link>
      <description>&lt;P&gt;any luck fixing this?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 13:15:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339726#M40977</guid>
      <dc:creator>gwobben</dc:creator>
      <dc:date>2017-10-03T13:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 3 Hive Connection</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339727#M40978</link>
      <description>&lt;P&gt;Nope no luck &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 20:33:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339727#M40978</guid>
      <dc:creator>jamesmarlowww</dc:creator>
      <dc:date>2017-10-04T20:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 3 Hive Connection</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339728#M40979</link>
      <description>&lt;P&gt;1)&lt;BR /&gt;
Based on this: &lt;A href="http://www.cloudera.com/documentation/other/connectors/hive-jdbc/2-5-6/Cloudera-JDBC-Driver-for-Apache-Hive-Install-Guide-2-5-6.pdf" target="_blank"&gt;http://www.cloudera.com/documentation/other/connectors/hive-jdbc/2-5-6/Cloudera-JDBC-Driver-for-Apache-Hive-Install-Guide-2-5-6.pdf&lt;/A&gt;&lt;BR /&gt;
It looks like Hive version 1.2.1 is not supported.&lt;/P&gt;

&lt;P&gt;2)&lt;BR /&gt;
For DBX 3, It looks like you are missing a directory.&lt;BR /&gt;
Normally I see: only one jar under /opt/splunk/etc/apps/splunk_app_db_connect/driver&lt;BR /&gt;
For example hive-jdbc-1.2.1.jar&lt;BR /&gt;
And under this sub directory you will put all the rest of the supporting jar files&lt;BR /&gt;
/opt/splunk/etc/apps/splunk_app_db_connect/driver/hive-jdbc-1.2.1-lib &lt;/P&gt;

&lt;P&gt;3)&lt;BR /&gt;
See the setup for Spark and Teradata&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/DBX/3.1.1/DeployDBX/Installdatabasedrivers#Spark_SQL" target="_blank"&gt;http://docs.splunk.com/Documentation/DBX/3.1.1/DeployDBX/Installdatabasedrivers#Spark_SQL&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:07:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-Hive-Connection/m-p/339728#M40979</guid>
      <dc:creator>rdagan_splunk</dc:creator>
      <dc:date>2020-09-29T16:07:27Z</dc:date>
    </item>
  </channel>
</rss>

