<?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>question Re: Help on JDBC connection with HDP 2.6,Help with JDBC connection HDP 2.6 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223580#M63431</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/19231/rick2.html" nodeid="19231"&gt;@Rick  Liao&lt;/A&gt;  you can SCP them directly from the Sandbox, which is the most reliable way to ensure compatibility.   The following examples download more jars from the Sandbox to your local machine, then, in the SquirrelSQL Drivers config, just pick only the ones you need.&lt;/P&gt;&lt;P&gt;scp -P 2222 root@sandbox.hortonworks.com:/usr/hdp/2.6.0.3-8/hadoop/lib/slf* /your/local/dir/&lt;/P&gt;&lt;P&gt;scp -P 2222 root@sandbox.hortonworks.com:/usr/hdp/2.6.0.3-8/hadoop/hadoop-common-2.7.3.2.6.0.3-8.jar /your/local/dir/&lt;/P&gt;&lt;P&gt;scp -P 2222 root@sandbox.hortonworks.com:/usr/hdp/2.6.0.3-8/hive/lib/* /your/local/dir/&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2017 03:05:33 GMT</pubDate>
    <dc:creator>ssahi</dc:creator>
    <dc:date>2017-06-23T03:05:33Z</dc:date>
    <item>
      <title>Help on JDBC connection with HDP 2.6,Help with JDBC connection HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223574#M63425</link>
      <description>&lt;P&gt;I am trying to connect to HDP sandbox through JDBC using SquirrelSQL and not having any luck. Below are the set up from HDP:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16540-hive.png" style="width: 1228px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15581i75A0B617F2CE80F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16540-hive.png" alt="16540-hive.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16541-versions.png" style="width: 522px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15582iDC74AC230933ECF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16541-versions.png" alt="16541-versions.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am using these jars:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16542-jars.png" style="width: 541px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15583i9676AEB461D41726/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16542-jars.png" alt="16542-jars.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Getting these errors:&lt;/P&gt;&lt;P&gt;java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/hive/service/rpc/thrift/TCLIService$Iface
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:206)
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.awaitConnection(OpenConnectionCommand.java:132)
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$100(OpenConnectionCommand.java:45)
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$2.run(OpenConnectionCommand.java:115)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/hive/service/rpc/thrift/TCLIService$Iface
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(OpenConnectionCommand.java:175)
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$000(OpenConnectionCommand.java:45)
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$1.run(OpenConnectionCommand.java:104)
... 5 more
Caused by: java.lang.NoClassDefFoundError: org/apache/hive/service/rpc/thrift/TCLIService$Iface
at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107)
at net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriverManager.java:133)
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(OpenConnectionCommand.java:167)
... 7 more
Caused by: java.lang.ClassNotFoundException: org.apache.hive.service.rpc.thrift.TCLIService$Iface
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:48:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223574#M63425</guid>
      <dc:creator>rick21</dc:creator>
      <dc:date>2022-09-16T11:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help on JDBC connection with HDP 2.6,Help with JDBC connection HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223575#M63426</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/19231/rick2.html" nodeid="19231"&gt;@Rick  Liao&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think the issue is coming from the jars in the hive driver config within SquirrelSQL (most noticeably, you are missing the required hive-metastore jar).  I just installed SquirrelSQL on my laptop, and successfully connected it to the HDP 2.6 Sandbox (same version as you 2.6.0.3) using the config in my screenshot attached here.    Try matching my jar config and see if that gets you one step further.  As always, if you find this post useful, please "accept" the answer.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/16561-screen-shot-2017-06-22-at-100451-am.png"&gt;screen-shot-2017-06-22-at-100451-am.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 23:08:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223575#M63426</guid>
      <dc:creator>ssahi</dc:creator>
      <dc:date>2017-06-22T23:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help on JDBC connection with HDP 2.6,Help with JDBC connection HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223576#M63427</link>
      <description>&lt;P&gt;Check the all the jar versions required also match.  I noticed libthrift jar version does not match the one I have (see answer below) from the HDP 2.6 sandbox  /usr/hdp/2.6.0.3-8/hive/lib/&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 23:23:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223576#M63427</guid>
      <dc:creator>ssahi</dc:creator>
      <dc:date>2017-06-22T23:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help on JDBC connection with HDP 2.6,Help with JDBC connection HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223577#M63428</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/questions/109335/help-on-jdbc-connection-with-hdp-26help-with-jdbc.html#" rel="nofollow noopener noreferrer" target="_blank"&gt;@Sonu Sahi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I tried to match your jars, but still got the same error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16566-jars.png" style="width: 713px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15580i49AB26130AF5B934/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16566-jars.png" alt="16566-jars.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a username and password I have to put in?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 01:53:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223577#M63428</guid>
      <dc:creator>rick21</dc:creator>
      <dc:date>2019-08-18T01:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help on JDBC connection with HDP 2.6,Help with JDBC connection HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223578#M63429</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/19231/rick2.html" nodeid="19231"&gt;@Rick  Liao&lt;/A&gt;  Attached here is my Alias screenshot showing its configuration.  I just used hive/hive for the test credentials, which worked as I can see the pre-loaded databases in the Sandbox.  &lt;/P&gt;&lt;P&gt;One thing I am noticing is that you are using HDP 2.4.x jars but from the screenshots above trying to connect to to an HDP 2.6.x cluster.  I would strongly recommend you download fresh jars from the 2.6 cluster and only add the ones required (see my attachment).  &lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 02:43:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223578#M63429</guid>
      <dc:creator>ssahi</dc:creator>
      <dc:date>2017-06-23T02:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help on JDBC connection with HDP 2.6,Help with JDBC connection HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223579#M63430</link>
      <description>&lt;P&gt;Hi @Sonu Sahi&lt;/P&gt;&lt;P&gt; Do you know where can I find those jars from the cluster? I tried following this: &lt;A href="https://community.hortonworks.com/questions/830/how-to-do-i-get-the-hive-jdbc-driver-for-my-clinet.html"&gt;https://community.hortonworks.com/questions/830/how-to-do-i-get-the-hive-jdbc-driver-for-my-clinet.html&lt;/A&gt; but there are no hdp or hive under /usr. I used the 2.4.x because they were the latest ones on maven.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 02:57:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223579#M63430</guid>
      <dc:creator>rick21</dc:creator>
      <dc:date>2017-06-23T02:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help on JDBC connection with HDP 2.6,Help with JDBC connection HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223580#M63431</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/19231/rick2.html" nodeid="19231"&gt;@Rick  Liao&lt;/A&gt;  you can SCP them directly from the Sandbox, which is the most reliable way to ensure compatibility.   The following examples download more jars from the Sandbox to your local machine, then, in the SquirrelSQL Drivers config, just pick only the ones you need.&lt;/P&gt;&lt;P&gt;scp -P 2222 root@sandbox.hortonworks.com:/usr/hdp/2.6.0.3-8/hadoop/lib/slf* /your/local/dir/&lt;/P&gt;&lt;P&gt;scp -P 2222 root@sandbox.hortonworks.com:/usr/hdp/2.6.0.3-8/hadoop/hadoop-common-2.7.3.2.6.0.3-8.jar /your/local/dir/&lt;/P&gt;&lt;P&gt;scp -P 2222 root@sandbox.hortonworks.com:/usr/hdp/2.6.0.3-8/hive/lib/* /your/local/dir/&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 03:05:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223580#M63431</guid>
      <dc:creator>ssahi</dc:creator>
      <dc:date>2017-06-23T03:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help on JDBC connection with HDP 2.6,Help with JDBC connection HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223581#M63432</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12636/ssahi.html" nodeid="12636"&gt;@Sonu Sahi&lt;/A&gt; Finally got it. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 22:49:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Help-on-JDBC-connection-with-HDP-2-6-Help-with-JDBC/m-p/223581#M63432</guid>
      <dc:creator>rick21</dc:creator>
      <dc:date>2017-06-23T22:49:39Z</dc:date>
    </item>
  </channel>
</rss>

