<?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: Connecting to Hive from SquirreL SQL client in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-to-Hive-from-SquirreL-SQL-client/m-p/292230#M47851</link>
    <description>&lt;P&gt;I do have similar issue to connect hive from squirrel&lt;/P&gt;&lt;P&gt;i use the&amp;nbsp;Beeline version 3.1.0.3.0.1.0-187 by connecting Hortonworks Image thru VM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the jars added ,but I am having connection got refused with error&lt;/P&gt;&lt;P&gt;"Unexpected Error occurred attempting to open an SQL connection.class java.net.ConnectException: Connection refused: connect"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hive-jdbc-3.1.0.3.0.1.0-187.jar&lt;/P&gt;&lt;P&gt;hive-jdbc-3.1.0.3.0.1.0-187-sources.jar&lt;/P&gt;&lt;P&gt;hive-jdbc-3.1.0.3.0.1.0-187-standalone.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jdbc URL&lt;/P&gt;&lt;P&gt;jdbc:hive2://sandbox-hdp.hortonworks.com:2181/default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to fix?&lt;/P&gt;</description>
    <pubDate>Sat, 21 Mar 2020 14:27:03 GMT</pubDate>
    <dc:creator>samsheer</dc:creator>
    <dc:date>2020-03-21T14:27:03Z</dc:date>
    <item>
      <title>Connecting to Hive from SquirreL SQL client</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-to-Hive-from-SquirreL-SQL-client/m-p/135491#M47847</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/336/nshawa.html" nodeid="336"&gt;@Ned Shawa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I followed these steps, but still unable to connect: &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/3043/connecting-to-hive-thrift-server-on-hortonworks-us.html" target="_blank"&gt;https://community.hortonworks.com/articles/3043/connecting-to-hive-thrift-server-on-hortonworks-us.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I did following:&lt;/P&gt;&lt;P&gt;1. Copied all required jar files from the cluster to Squirrel lib directory:&lt;/P&gt;&lt;P&gt;commons-logging*.jar&lt;/P&gt;&lt;P&gt;hadoop-common-*.jar&lt;/P&gt;&lt;P&gt;hive-exec-*.jar&lt;/P&gt;&lt;P&gt;hive-jdbc-*.jar&lt;/P&gt;&lt;P&gt;httpclient-*.jar&lt;/P&gt;&lt;P&gt;httpcore-*.jar&lt;/P&gt;&lt;P&gt;libthrift-*.jar&lt;/P&gt;&lt;P&gt;ojdbc7.jar&lt;/P&gt;&lt;P&gt;sfl4j-api-*.jar&lt;/P&gt;&lt;P&gt;sfl4j-log4j12-*.jar&lt;/P&gt;&lt;P&gt;2. Created a new driver using above jar files.&lt;/P&gt;&lt;P&gt;3. Created a new alias using the new driver with following URL: jdbc:hive2://&amp;lt;HiveServer2 SERVER&amp;gt;:10000/default&lt;/P&gt;&lt;P&gt;UserName: &amp;lt;Hive Oracle User Name&amp;gt;&lt;/P&gt;&lt;P&gt;Password: &amp;lt;Hive Oracle Password&amp;gt;&lt;/P&gt;&lt;P&gt;Still, I'm seeing following error:&lt;/P&gt;&lt;P&gt;===========================================================&lt;/P&gt;&lt;P&gt;java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/hadoop/hive/metastore/api/MetaException
   at java.util.concurrent.FutureTask.report(Unknown Source)
   at java.util.concurrent.FutureTask.get(Unknown Source)
   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(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/hadoop/hive/metastore/api/MetaException
   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/hadoop/hive/metastore/api/MetaException
   at org.apache.hive.jdbc.HiveConnection.createBinaryTransport(HiveConnection.java:456)
   at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:182)
   at org.apache.hive.jdbc.HiveConnection.&amp;lt;init&amp;gt;(HiveConnection.java:155)
   at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
   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.hadoop.hive.metastore.api.MetaException
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   ... 13 more&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 06:13:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-to-Hive-from-SquirreL-SQL-client/m-p/135491#M47847</guid>
      <dc:creator>manish1</dc:creator>
      <dc:date>2016-12-03T06:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Hive from SquirreL SQL client</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-to-Hive-from-SquirreL-SQL-client/m-p/135492#M47848</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/88/manish.html" nodeid="88"&gt;@Manish Gupta&lt;/A&gt; try adding hive-metastore.jar as well in squirrel jar list.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 06:20:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-to-Hive-from-SquirreL-SQL-client/m-p/135492#M47848</guid>
      <dc:creator>kkhan</dc:creator>
      <dc:date>2016-12-03T06:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Hive from SquirreL SQL client</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-to-Hive-from-SquirreL-SQL-client/m-p/135493#M47849</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/4130/kkhan.html" nodeid="4130"&gt;@Kashif Khan&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 06:34:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-to-Hive-from-SquirreL-SQL-client/m-p/135493#M47849</guid>
      <dc:creator>manish1</dc:creator>
      <dc:date>2016-12-03T06:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Hive from SquirreL SQL client</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-to-Hive-from-SquirreL-SQL-client/m-p/135494#M47850</link>
      <description>&lt;P&gt;That is exactly why I rather use ambari views&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 14:08:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-to-Hive-from-SquirreL-SQL-client/m-p/135494#M47850</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-12-03T14:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Hive from SquirreL SQL client</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-to-Hive-from-SquirreL-SQL-client/m-p/292230#M47851</link>
      <description>&lt;P&gt;I do have similar issue to connect hive from squirrel&lt;/P&gt;&lt;P&gt;i use the&amp;nbsp;Beeline version 3.1.0.3.0.1.0-187 by connecting Hortonworks Image thru VM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the jars added ,but I am having connection got refused with error&lt;/P&gt;&lt;P&gt;"Unexpected Error occurred attempting to open an SQL connection.class java.net.ConnectException: Connection refused: connect"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hive-jdbc-3.1.0.3.0.1.0-187.jar&lt;/P&gt;&lt;P&gt;hive-jdbc-3.1.0.3.0.1.0-187-sources.jar&lt;/P&gt;&lt;P&gt;hive-jdbc-3.1.0.3.0.1.0-187-standalone.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jdbc URL&lt;/P&gt;&lt;P&gt;jdbc:hive2://sandbox-hdp.hortonworks.com:2181/default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to fix?&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 14:27:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-to-Hive-from-SquirreL-SQL-client/m-p/292230#M47851</guid>
      <dc:creator>samsheer</dc:creator>
      <dc:date>2020-03-21T14:27:03Z</dc:date>
    </item>
  </channel>
</rss>

