<?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: How to access HBase through ODBC then Phoenix Query Server Securely with Impersonation? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-HBase-through-ODBC-then-Phoenix-Query-Server/m-p/172292#M54286</link>
    <description>&lt;P&gt;HI Josh,&lt;/P&gt;&lt;P&gt;Thank you very much for your reply.  Could you take a look at question: &lt;A href="https://community.hortonworks.com/questions/83220/how-to-use-knox-to-securely-access-hbase-through-o.html" target="_blank"&gt;https://community.hortonworks.com/questions/83220/how-to-use-knox-to-securely-access-hbase-through-o.html&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2017 00:12:56 GMT</pubDate>
    <dc:creator>hong_yu</dc:creator>
    <dc:date>2017-02-14T00:12:56Z</dc:date>
    <item>
      <title>How to access HBase through ODBC then Phoenix Query Server Securely with Impersonation?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-HBase-through-ODBC-then-Phoenix-Query-Server/m-p/172290#M54284</link>
      <description>&lt;P&gt;We have HDP 2.5.3 deployed on
RedHat Linux with Phoenix Query Server (PQS) in front of Phoenix+HBase.  Our
plan is to use ODBC on Windows Server through Phoenix Query Server to access
HBase.&lt;/P&gt;&lt;P&gt;We are looking for a solution WITHOUT
using Kerberos.  We would like to turn on httpS on the PQS to secure the connection.&lt;/P&gt;&lt;P&gt;The data flow would look like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12409-odbcphoenix.png" style="width: 903px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20006iFEC25A9B3F3B79A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12409-odbcphoenix.png" alt="12409-odbcphoenix.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We tested that once the ODBC DSN is configured with a
username and password, the request sent out from it to PQS does use HTTP Basic
Authentication.&lt;/P&gt;&lt;P&gt;We need help on:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How to have PQS turn on HTTP Basic authentication
to authenticate the calls from ODBC?&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;How to turn on http&lt;STRONG&gt;S&lt;/STRONG&gt; on PQS to secure the connection? &lt;/LI&gt;&lt;LI&gt;How to impersonate the calls from PQS to HBase with the authenticated user? By default, PQS calls HBase as user “hbase” because PQS runs under this user.  We need to
have PQS call HBase with the impersonated user so that Ranger can be used to
control the access.  This configuration for impersonation, &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/kerb-config-secure-phoenix.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/kerb-config-secure-phoenix.html&lt;/A&gt;, does not seem to work without Kerberos.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Are these above configurations possible? Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 10:33:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-HBase-through-ODBC-then-Phoenix-Query-Server/m-p/172290#M54284</guid>
      <dc:creator>hong_yu</dc:creator>
      <dc:date>2019-08-18T10:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to access HBase through ODBC then Phoenix Query Server Securely with Impersonation?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-HBase-through-ODBC-then-Phoenix-Query-Server/m-p/172291#M54285</link>
      <description>&lt;P&gt;"How to have PQS turn on HTTP Basic authentication to authenticate the calls from ODBC?"&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;This is not supported by PQS, but the code exists in Avatica to support it.&lt;/P&gt;&lt;P&gt;&lt;A href="http://calcite.apache.org/avatica/docs/security.html#http-basic-authentication" target="_blank"&gt;http://calcite.apache.org/avatica/docs/security.html#http-basic-authentication&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Your only route presently is to modify Phoenix to support this.&lt;/P&gt;&lt;P&gt;"How to turn on http&lt;STRONG&gt;S&lt;/STRONG&gt; on PQS to secure the connection?"&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;This presently is not supported by PQS.&lt;/P&gt;&lt;P&gt;"How to impersonate the calls from PQS to HBase with the authenticated user?"&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;This is only supported via SPNEGO authentication in PQS.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;A href="http://calcite.apache.org/avatica/docs/security.html#impersonation" target="_blank"&gt;http://calcite.apache.org/avatica/docs/security.html#impersonation&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Again, you can modify Phoenix to support this but there is no out of the box solution.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;You can consider the use of Apache Knox to sit between the ODBC driver and PQS which would provide TLS and configurable authentication.&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/KNOX-817" target="_blank"&gt;https://issues.apache.org/jira/browse/KNOX-817&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/KNOX-844" target="_blank"&gt;https://issues.apache.org/jira/browse/KNOX-844&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 00:09:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-HBase-through-ODBC-then-Phoenix-Query-Server/m-p/172291#M54285</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2017-02-14T00:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to access HBase through ODBC then Phoenix Query Server Securely with Impersonation?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-HBase-through-ODBC-then-Phoenix-Query-Server/m-p/172292#M54286</link>
      <description>&lt;P&gt;HI Josh,&lt;/P&gt;&lt;P&gt;Thank you very much for your reply.  Could you take a look at question: &lt;A href="https://community.hortonworks.com/questions/83220/how-to-use-knox-to-securely-access-hbase-through-o.html" target="_blank"&gt;https://community.hortonworks.com/questions/83220/how-to-use-knox-to-securely-access-hbase-through-o.html&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 00:12:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-HBase-through-ODBC-then-Phoenix-Query-Server/m-p/172292#M54286</guid>
      <dc:creator>hong_yu</dc:creator>
      <dc:date>2017-02-14T00:12:56Z</dc:date>
    </item>
  </channel>
</rss>

