<?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: Connection to PQS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connection-to-PQS/m-p/175611#M64256</link>
    <description>&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;You are right, I gave a try using another principal for my client to match the realm of the principal used by PQS and it works fine now...&lt;/P&gt;&lt;P&gt;Thanks a lot for your help&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2017 13:25:11 GMT</pubDate>
    <dc:creator>schausson</dc:creator>
    <dc:date>2017-07-06T13:25:11Z</dc:date>
    <item>
      <title>Connection to PQS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connection-to-PQS/m-p/175609#M64254</link>
      <description>&lt;PRE&gt;
&lt;/PRE&gt;&lt;P&gt;
I'm trying to use Phoenix Query Server on my kerberized cluster. &lt;/P&gt;&lt;P&gt;I tried to connect to it with provided thin client tool without any success : &lt;/P&gt;&lt;PRE&gt;/sqlline-thin.py &lt;A href="http://myserver.fqdn:8765" target="_blank"&gt;http://myserver.fqdn:8765&lt;/A&gt; &lt;/PRE&gt;&lt;P&gt;Results with following error : &lt;/P&gt;&lt;PRE&gt;...
17/07/05 11:49:51 DEBUG auth.HttpAuthenticator: Authentication succeeded
17/07/05 11:49:51 DEBUG conn.DefaultManagedHttpClientConnection: http-outgoing-0: Close connection
17/07/05 11:49:51 DEBUG execchain.MainClientExec: Connection discarded
17/07/05 11:49:51 DEBUG conn.PoolingHttpClientConnectionManager: Connection released: [id: 0][route: {}-&amp;gt;http://fr0-datalab-p31.bdata.corp:8765][total kept alive: 0; route allocated: 0 of 25; total allocated: 0 of 100]
java.lang.RuntimeException: Failed to execute HTTP Request, got HTTP/403
        at org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientSpnegoImpl.send(AvaticaCommonsHttpClientSpnegoImpl.java:148)
        at org.apache.calcite.avatica.remote.RemoteProtobufService._apply(RemoteProtobufService.java:44)
        at org.apache.calcite.avatica.remote.ProtobufService.apply(ProtobufService.java:81)
        at org.apache.calcite.avatica.remote.Driver.connect(Driver.java:175)
        at sqlline.DatabaseConnection.connect(DatabaseConnection.java:157)
        at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
&lt;/PRE&gt;&lt;P&gt;However, it ends up with the cli prompt : &lt;/P&gt;&lt;PRE&gt;0: jdbc:phoenix:thin:url=http://myserver&amp;gt;&lt;/PRE&gt;&lt;P&gt;... but without any valid connection : As soon as I try to proceed with a "select" statement, I get "No current connection" message.&lt;/P&gt;&lt;P&gt;To solve this, I tried to execute &lt;/P&gt;&lt;PRE&gt;!connect myserver.fqdn myuser mypassword
&lt;/PRE&gt;&lt;P&gt; but faced &lt;/P&gt;&lt;PRE&gt;No known driver to handle "myserver.fqdn"&lt;/PRE&gt;&lt;P&gt;It's worth saying that : &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I performed a successfull "kinit" beforehand. &lt;/LI&gt;&lt;LI&gt;PQS runs fine on myserver.fqdn and listens on 8765 port (default one) &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any idea how I could investigate further this issue ? &lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 17:02:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connection-to-PQS/m-p/175609#M64254</guid>
      <dc:creator>schausson</dc:creator>
      <dc:date>2017-07-05T17:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Connection to PQS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connection-to-PQS/m-p/175610#M64255</link>
      <description>&lt;P&gt;HTTP/403 means that you were able to successfully authenticate with the server, however you were disallowed due to authorization reasons (authentication and authorization are different things!)&lt;/P&gt;&lt;P&gt;What is the Kerberos principal your client is using and what is the Kerberos principal PQS is using? You could be running into &lt;A href="https://issues.apache.org/jira/browse/CALCITE-1282"&gt;CALCITE-1282&lt;/A&gt; / &lt;A href="https://issues.apache.org/jira/browse/PHOENIX-3004"&gt;PHOENIX-3004&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 23:00:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connection-to-PQS/m-p/175610#M64255</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2017-07-05T23:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Connection to PQS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connection-to-PQS/m-p/175611#M64256</link>
      <description>&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;You are right, I gave a try using another principal for my client to match the realm of the principal used by PQS and it works fine now...&lt;/P&gt;&lt;P&gt;Thanks a lot for your help&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 13:25:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connection-to-PQS/m-p/175611#M64256</guid>
      <dc:creator>schausson</dc:creator>
      <dc:date>2017-07-06T13:25:11Z</dc:date>
    </item>
  </channel>
</rss>

