<?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: Error Connecting to secured phoenix through SQuirrelSQL in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201168#M163183</link>
    <description>&lt;P&gt;I'm talking about the config directories. Those are : /etc/hbase/conf and /etc/hadoop/conf. Some versions of HDP have a copy of core-site.xml in the hbase conf dir (you may check it manually). The only jar you need to add to the driver configuration is /usr/hdp/current/phoenix-client/phoenix-client.jar. Don't add anything else. &lt;/P&gt;</description>
    <pubDate>Sat, 29 Jul 2017 02:33:42 GMT</pubDate>
    <dc:creator>ssoldatov</dc:creator>
    <dc:date>2017-07-29T02:33:42Z</dc:date>
    <item>
      <title>Error Connecting to secured phoenix through SQuirrelSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201161#M163176</link>
      <description>&lt;P&gt;Getting Below Error:&lt;/P&gt;&lt;PRE&gt;java.util.concurrent.TimeoutException
	at java.util.concurrent.FutureTask.get(FutureTask.java:205)
	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:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
&lt;/PRE&gt;&lt;P&gt;I am using Below URL for connection,&lt;/P&gt;&lt;P&gt;jdbc:phoenix:zk-host-1,zk-host-2,zk-host-3:2181:/hbase-secure:/Users/user1/user1.headless.keytab:user1@EXAMPLE.COM&lt;/P&gt;&lt;P&gt;Please help?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 09:20:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201161#M163176</guid>
      <dc:creator>nshelke</dc:creator>
      <dc:date>2017-07-28T09:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error Connecting to secured phoenix through SQuirrelSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201162#M163177</link>
      <description>&lt;P&gt;Why SquirrelSQL is not able to make a connection to HBase cluster is not clear from the stack trace. &lt;/P&gt;&lt;P&gt;would you mind enabling debugging and paste the logs here.&lt;/P&gt;&lt;P&gt;have you tried connecting using sqlline with the same url from the same machine. &lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 12:44:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201162#M163177</guid>
      <dc:creator>asinghal</dc:creator>
      <dc:date>2017-07-28T12:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error Connecting to secured phoenix through SQuirrelSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201163#M163178</link>
      <description>&lt;P&gt;You are using an incorrect URL. Please read the documentation &lt;A href="https://phoenix.apache.org/#Connection" target="_blank"&gt;https://phoenix.apache.org/#Connection&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;jdbc:phoenix:zk-host-1,zk-host-2,zk-host-3:2181:/hbase-secure:&lt;A href="mailto:user1@EXAMPLE.COM"&gt;user1@EXAMPLE.COM&lt;/A&gt;:/Users/user1/user1.headless.keytab&lt;/PRE&gt;&lt;P&gt;&lt;A href="mailto:user1@EXAMPLE.COM"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 23:22:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201163#M163178</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2017-07-28T23:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error Connecting to secured phoenix through SQuirrelSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201164#M163179</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/223/jelser.html" nodeid="223"&gt;@Josh Elser&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I tried Both getting same Error.&lt;/P&gt;&lt;PRE&gt;jdbc:phoenix:zk-host-1,zk-host-2,zk-host-3:2181:/hbase-secure:user1@EXAMPLE.COM:/Users/user1/user1.headless.keytab
&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jul 2017 23:26:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201164#M163179</guid>
      <dc:creator>nshelke</dc:creator>
      <dc:date>2017-07-28T23:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error Connecting to secured phoenix through SQuirrelSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201165#M163180</link>
      <description>&lt;P&gt;The one you have in the description is wrong and will never work. The one here is the form you must use.&lt;/P&gt;&lt;P&gt;Please follow Ankit's suggestion to provide for information. A TimeoutException that makes no reference to Phoenix code is not helpful.&lt;/P&gt;&lt;P&gt;Please also be aware that hbase-site.xml and core-site.xml are required to be on the classpath for Phoenix to connect to a secured HBase installation. This may be the root of your problem, but it is unknown without more data.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 23:32:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201165#M163180</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2017-07-28T23:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error Connecting to secured phoenix through SQuirrelSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201166#M163181</link>
      <description>&lt;P&gt;Make sure  that both hbase and hadoop conf dirs are in the classpath. It can be configured through Extra Class Path tab of the Phoenix driver. Also make sure that you added directories, but not xml files.&lt;/P&gt;&lt;P&gt;Similar type of timeouts usually happen because HBase client (which is a part of Phoenix) to detect secured environment requires from cluster both hbase-site.xml and core-site.xml. If it doesn't find that both hbase and hadoop are secured, it tries to use plain connection to region servers which will be timed out. &lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 02:14:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201166#M163181</guid>
      <dc:creator>ssoldatov</dc:creator>
      <dc:date>2017-07-29T02:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error Connecting to secured phoenix through SQuirrelSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201167#M163182</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2924/ssoldatov.html" nodeid="2924"&gt;@Sergey Soldatov&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks for response,&lt;/P&gt;&lt;P&gt;Which directories do you want me to add in the SQL lib.&lt;/P&gt;&lt;P&gt;I guess it should be /usr/hdp/current/hbase-master/lib/hbase*.jar and /usr/hdp/current/hadoop-client/hadoop*.jar.&lt;/P&gt;&lt;P&gt;Please confirm.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 02:25:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201167#M163182</guid>
      <dc:creator>nshelke</dc:creator>
      <dc:date>2017-07-29T02:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error Connecting to secured phoenix through SQuirrelSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201168#M163183</link>
      <description>&lt;P&gt;I'm talking about the config directories. Those are : /etc/hbase/conf and /etc/hadoop/conf. Some versions of HDP have a copy of core-site.xml in the hbase conf dir (you may check it manually). The only jar you need to add to the driver configuration is /usr/hdp/current/phoenix-client/phoenix-client.jar. Don't add anything else. &lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 02:33:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201168#M163183</guid>
      <dc:creator>ssoldatov</dc:creator>
      <dc:date>2017-07-29T02:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error Connecting to secured phoenix through SQuirrelSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201169#M163184</link>
      <description>&lt;P&gt;I have solved this issue, By adding hbase-site.xml and core-site.xml files to the phoenix jars,&lt;/P&gt;&lt;P&gt;As Squirrel doesn't take hbase-site.xml and core-site.xml files directly to classpath, Squirrel tries to unzip them like normal jar files.&lt;/P&gt;&lt;P&gt;By extracting phoenix jar and added hbase-site.xml and core-site.xml files to the jar again created new jar with same name.&lt;/P&gt;&lt;P&gt;Added it to the Squirrel-sql Lib directory and restarted the Squirrel-sql.&lt;/P&gt;&lt;P&gt;After this I am able to connect to phoenix using Squirrel-Sql.&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/2924/ssoldatov.html"&gt;@Sergey Soldatov&lt;/A&gt; and &lt;A href="https://community.hortonworks.com/users/223/jelser.html"&gt;@Josh Elser&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 07:43:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201169#M163184</guid>
      <dc:creator>nshelke</dc:creator>
      <dc:date>2017-08-08T07:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error Connecting to secured phoenix through SQuirrelSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201170#M163185</link>
      <description>&lt;P&gt;That's an incorrect approach. You don't need to add xml files to the jars. As I already mentioned before, you need to add directories where those files located, not files themselves. That's how java classpath work. It accepts jars and directories only. So if you need a resource in the java classpath, you need to have it in a jar file (like you did)  OR put the parent directory to the classpath. In Squirrel it can be done in the Extra classpath tab of the Driver configuration: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="26400-screen-shot-2017-08-07-at-54956-pm.png" style="width: 1027px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17478iAB516C78F21E1B24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="26400-screen-shot-2017-08-07-at-54956-pm.png" alt="26400-screen-shot-2017-08-07-at-54956-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:35:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Connecting-to-secured-phoenix-through-SQuirrelSQL/m-p/201170#M163185</guid>
      <dc:creator>ssoldatov</dc:creator>
      <dc:date>2019-08-18T05:35:40Z</dc:date>
    </item>
  </channel>
</rss>

