<?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 pass user with Phoenix url? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96712#M10209</link>
    <description>&lt;P&gt;thanks &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj&lt;/A&gt;.  this helps from the command line, though if I want to do it from java, the client is still picking up the computer username not that one you pass in...&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2015 22:52:46 GMT</pubDate>
    <dc:creator>hfaouaz</dc:creator>
    <dc:date>2015-11-10T22:52:46Z</dc:date>
    <item>
      <title>How to pass user with Phoenix url?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96707#M10204</link>
      <description>&lt;P&gt;Currently Have Hbase protected by Ranger. I am not able to connect to Hbase via Phoenix from an external java client since its picking up my machine userid and that is not an authorized user.  Is there a way to pass in the user in phoenix connection url?&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2015 01:46:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96707#M10204</guid>
      <dc:creator>hfaouaz</dc:creator>
      <dc:date>2015-11-07T01:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass user with Phoenix url?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96708#M10205</link>
      <description>&lt;P&gt;Is Kerberos also in play?  The docs page &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_installing_manually_book/content/validating-phoenix-installation.html"&gt;here&lt;/A&gt; gives an example for connecting with the HBase service principal. &lt;/P&gt;&lt;P&gt;Have you tried a connection URL like?&lt;/P&gt;&lt;PRE&gt;jdbc:phoenix:&amp;lt;Zookeeper_host_name&amp;gt;:&amp;lt;port_number&amp;gt;:&amp;lt;secured_Zookeeper_node&amp;gt;:&amp;lt;user_name&amp;gt; &lt;/PRE&gt;</description>
      <pubDate>Sat, 07 Nov 2015 02:02:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96708#M10205</guid>
      <dc:creator>TerryP</dc:creator>
      <dc:date>2015-11-07T02:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass user with Phoenix url?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96709#M10206</link>
      <description>&lt;P&gt;my cluster is not yet secured. so I have non secure zooker node.&lt;/P&gt;&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;"jdbc:phoenix:&amp;lt;zookeper-host&amp;gt;:2181:/hbase-unsecure:&amp;lt;uid&amp;gt;"&lt;/P&gt;&lt;P&gt;but no luck. would that work with non-secure zookeeper node?&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2015 02:14:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96709#M10206</guid>
      <dc:creator>hfaouaz</dc:creator>
      <dc:date>2015-11-07T02:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass user with Phoenix url?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96710#M10207</link>
      <description>&lt;P&gt;It should work even without Kerberos. I'm not sure how the Ranger authorization fits into the picture.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2015 02:26:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96710#M10207</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2015-11-07T02:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass user with Phoenix url?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96711#M10208</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;A rel="user" href="https://community.cloudera.com/users/38/terry.html" nodeid="38"&gt;@terry@hortonworks.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;@&lt;A href="http://community.hortonworks.com/users/481/hfaouaz.html"&gt;hfaouaz@hortonworks.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please see this.&lt;/P&gt;&lt;P&gt;[root@nsfed01 ~]# /usr/hdp/2.3.2.0-2950/phoenix/bin/sqlline.py n1:2181:/hbase-unsecure:neeraj&lt;/P&gt;&lt;P&gt;Setting property: [isolation, TRANSACTION_READ_COMMITTED]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;issuing: !connect jdbc:phoenix:n1:2181:/hbase-unsecure:neeraj none none org.apache.phoenix.jdbc.PhoenixDriver&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Connecting to jdbc:phoenix:n1:2181:/hbase-unsecure:neeraj&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;15/11/08 05:04:50 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable&lt;/P&gt;&lt;P&gt;15/11/08 05:04:51 WARN impl.MetricsConfig: Cannot locate configuration: tried hadoop-metrics2-phoenix.properties,hadoop-metrics2.properties&lt;/P&gt;&lt;P&gt;Connected to: Phoenix (version 4.4)&lt;/P&gt;&lt;P&gt;Driver: PhoenixEmbeddedDriver (version 4.4)&lt;/P&gt;&lt;P&gt;Autocommit status: true&lt;/P&gt;&lt;P&gt;Transaction isolation: TRANSACTION_READ_COMMITTED&lt;/P&gt;&lt;P&gt;Building list of tables and columns for tab-completion (set fastconnect to true to skip)...&lt;/P&gt;&lt;P&gt;93/93 (100%) Done&lt;/P&gt;&lt;P&gt;Done&lt;/P&gt;&lt;P&gt;sqlline version 1.1.8&lt;/P&gt;&lt;P&gt;0: jdbc:phoenix:n1:2181:/hbase-unsecure:neera&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0: jdbc:phoenix:n1:2181:/hbase-unsecure:neera&amp;gt; !list&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1 active connection:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; #0  open     jdbc:phoenix:n1:2181:/hbase-unsecure:neeraj&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0: jdbc:phoenix:n1:2181:/hbase-unsecure:neera&amp;gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Nov 2015 21:06:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96711#M10208</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-08T21:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass user with Phoenix url?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96712#M10209</link>
      <description>&lt;P&gt;thanks &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj&lt;/A&gt;.  this helps from the command line, though if I want to do it from java, the client is still picking up the computer username not that one you pass in...&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 22:52:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96712#M10209</guid>
      <dc:creator>hfaouaz</dc:creator>
      <dc:date>2015-11-10T22:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass user with Phoenix url?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96713#M10210</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/481/hfaouaz.html" nodeid="481"&gt;@hfaouaz@hortonworks.com&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Good example&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://appcrawler.com/wordpress/2014/11/04/hbase-phoenix-jdbc-example/"&gt;Example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You may have pass username with in the Java call&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 22:57:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96713#M10210</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-10T22:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass user with Phoenix url?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96714#M10211</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/481/hfaouaz.html" nodeid="481"&gt;@hfaouaz@hortonworks.com&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kerberos is your best bet.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now, without kerberos&lt;/P&gt;&lt;P&gt;You have to login as that particular user to run java program.&lt;/P&gt;&lt;P&gt;example: Based on testing in my lab env. &lt;/P&gt;&lt;P&gt;login as OS user, for example user abc and if you are dealing with ranger then make sure that os user has permission in HBase policies. &lt;/P&gt;&lt;P&gt;Conclusion: Phoenix is picking up OS user as user opening the connection. &lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 04:39:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96714#M10211</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-12T04:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass user with Phoenix url?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96715#M10212</link>
      <description>&lt;P&gt;yep I agree.  thanks for the follow up.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 04:42:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-pass-user-with-Phoenix-url/m-p/96715#M10212</guid>
      <dc:creator>hfaouaz</dc:creator>
      <dc:date>2015-11-12T04:42:46Z</dc:date>
    </item>
  </channel>
</rss>

