<?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: Phoenix connection error while secure Hbase cluster in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123222#M85966</link>
    <description>&lt;P&gt;No. the above command is to be used inside beeline.&lt;/P&gt;&lt;P&gt;I am assuming you are trying to connect to phoenix python shell in which case these are the commands.&lt;/P&gt;&lt;P&gt;these are the commands in linux shell using which I was able to use to get in to phoenix shell in kerberized cluster.&lt;/P&gt;&lt;PRE&gt;export HBASE_CONF_PATH=/etc/hbase/conf:/etc/hadoop/conf&lt;/PRE&gt;&lt;P&gt;if you are logged in as your own user&lt;/P&gt;&lt;PRE&gt;kinit
/usr/hdp/current/phoenix-client/bin/sqlline.py hostname.domain.com:2181:/hbase-secure &lt;/PRE&gt;&lt;P&gt;if using logged in as hbase user &lt;/P&gt;&lt;PRE&gt;kinit -k -t /etc/security/keytabs/hbase.headless.keytab hbase
/usr/hdp/current/phoenix-client/bin/sqlline.py hostname.domain.com:2181:/hbase-secure:hbase@domain.com:/etc/security/keytabs/hbase.headless.keytab&lt;/PRE&gt;&lt;P&gt;then you can run following commands to show list of phoenix tables&lt;/P&gt;&lt;PRE&gt;!tables&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Jun 2016 08:10:04 GMT</pubDate>
    <dc:creator>spotluri</dc:creator>
    <dc:date>2016-06-07T08:10:04Z</dc:date>
    <item>
      <title>Phoenix connection error while secure Hbase cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123212#M85956</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I have configured Phoenix on top of Hbase and facing below  error while I'm trying to connect using jdbc:phoenix:&amp;lt;&lt;EM&gt;Zookeeper_host_name&lt;/EM&gt;&amp;gt;:&amp;lt;&lt;EM&gt;port_number&lt;/EM&gt;&amp;gt;:&amp;lt;&lt;EM&gt;secured_Zookeeper_node&lt;/EM&gt;&amp;gt;:&amp;lt;&lt;EM&gt;principal_name&lt;/EM&gt;&amp;gt;:&amp;lt;&lt;EM&gt;HBase_headless_keytab_file&lt;/EM&gt;&amp;gt; for kerberized cluster. Any needfull help is highly appericated. &lt;/P&gt;&lt;P&gt;Error message:&lt;/P&gt;&lt;PRE&gt;Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect jdbc:phoenix:jdbc:phoenix:hostname.domain.com:2181:/hbase-secure:hbase@HDP.DOMAIN.COM:/etc/security/keytabs/hbase.headless.keytab none none org.apache.phoenix.jdbc.PhoenixDriver
Connecting to jdbc:phoenix:jdbc:phoenix:hostname.domain.com:2181:/hbase-secure:hbase-hdppoc@HDP.DOMAIN.COM:/etc/security/keytabs/hbase.headless.keytab
Error: ERROR 102 (08001): Malformed connection url. :jdbc:phoenix:hostname.domain.com:2181:/hbase-secure:hbase-hdppoc@HDP.DOMAIN.COM:/etc/security/keytabs/hbase.headless.keytab (state=08001,code=102)
java.sql.SQLException: ERROR 102 (08001): Malformed connection url. :jdbc:phoenix:hostname.domain.com:2181:/hbase-secure:hbase-hdppoc@HDP.DOMAIN.COM:/etc/security/keytabs/hbase.headless.keytab
        at org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:386)
        at org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:145)
        at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver$ConnectionInfo.getMalFormedUrlException(PhoenixEmbeddedDriver.java:186)
        at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver$ConnectionInfo.create(PhoenixEmbeddedDriver.java:228)
        at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:162)
        at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.connect(PhoenixEmbeddedDriver.java:132)
        at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:151)
        at sqlline.DatabaseConnection.connect(DatabaseConnection.java:157)
        at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
        at sqlline.Commands.connect(Commands.java:1064)
        at sqlline.Commands.connect(Commands.java:996)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:36)
        at sqlline.SqlLine.dispatch(SqlLine.java:804)
        at sqlline.SqlLine.initArgs(SqlLine.java:588)
        at sqlline.SqlLine.begin(SqlLine.java:656)
        at sqlline.SqlLine.start(SqlLine.java:398)
        at sqlline.SqlLine.main(SqlLine.java:292)
sqlline version 1.1.8
0: jdbc:phoenix:jdbc:phoenix:hostname.&amp;gt;
0: jdbc:phoenix:jdbc:phoenix:hostname.&amp;gt; list
. . . . . . . . . . . . . . . . . . . . . . .&amp;gt; ;
No current connection
0: jdbc:phoenix:jdbc:phoenix:hostname.&amp;gt;
&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jun 2016 05:09:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123212#M85956</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-06-07T05:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection error while secure Hbase cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123213#M85957</link>
      <description>&lt;P&gt;If you are using sqlline, you don't need "jdbc:phoenix:" prefix. It adds it automatically (that's why log shows "jdbc:phoenix:jdbc:phoenix:"). &lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 05:15:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123213#M85957</guid>
      <dc:creator>ssoldatov</dc:creator>
      <dc:date>2016-06-07T05:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection error while secure Hbase cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123214#M85958</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5746/bandarusridhar1.html" nodeid="5746"&gt;@Sri  Bandaru&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I would say, follow this page&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_installing_manually_book/content/validating-phoenix-installation.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_installing_manually_book/content/validating-phoenix-installation.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;jdbc:phoenix:&amp;lt;&lt;EM&gt;Zookeeper_host_name&lt;/EM&gt;&amp;gt;:&amp;lt;&lt;EM&gt;port_number&lt;/EM&gt;&amp;gt;:&amp;lt;&lt;EM&gt;secured_Zookeeper_node&lt;/EM&gt;&amp;gt;:&amp;lt;&lt;EM&gt;principal_name&lt;/EM&gt;&amp;gt;:&amp;lt;&lt;EM&gt;HBase_headless_keytab_file&lt;/EM&gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;try this &lt;/P&gt;&lt;P&gt;!connect jdbc:phoenix:zkhostname.domain.com:2181:/hbase-secure:hbase@HDP.DOMAIN.COM:/etc/security/keytabs/hbase.headless.keytab&lt;/P&gt;&lt;P&gt;you had an extra "phoenix:jdbc" in the command&lt;/P&gt;&lt;P&gt;let me know if it worked.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 05:19:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123214#M85958</guid>
      <dc:creator>spotluri</dc:creator>
      <dc:date>2016-06-07T05:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection error while secure Hbase cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123215#M85959</link>
      <description>&lt;P&gt;&lt;A rel="user" href="#"&gt;@ssoldatov&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks, Got progressed but it's not connecting to phoenix. For a long time, it stopped at below and not moving further. &lt;/P&gt;&lt;PRE&gt;Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect jdbc:phoenix:hostname.domain.com:2181:/hbase-secure:hbase-hdppoc@POC.HDP.DOMAIN.COM:/etc/security/keytabs/hbase.headless.keytab none none org.apache.phoenix.jdbc.PhoenixDriver
Connecting to jdbc:phoenix:hostname.domain.com:2181:/hbase-secure:hbase-hdppoc@POC.HDP.DOMAIN.COM:/etc/security/keytabs/hbase.headless.keytab
16/06/06 17:18:01 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
16/06/06 17:18:02 WARN impl.MetricsConfig: Cannot locate configuration: tried hadoop-metrics2-phoenix.properties,hadoop-metrics2.properties
&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jun 2016 05:29:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123215#M85959</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-06-07T05:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection error while secure Hbase cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123216#M85960</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/9125/spotluri.html" nodeid="9125"&gt;@spotluri&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Do I need to enter !connect option in Hbase shell same like beeline Hiveserver2 connection?. If yes, that's not working either in hbase shell or outside&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 05:30:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123216#M85960</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-06-07T05:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection error while secure Hbase cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123217#M85961</link>
      <description>&lt;P&gt;No you donot need !connect in hbase shell. &lt;/P&gt;&lt;P&gt;only&lt;/P&gt;&lt;P&gt;"hbase shell"&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 05:35:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123217#M85961</guid>
      <dc:creator>spotluri</dc:creator>
      <dc:date>2016-06-07T05:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection error while secure Hbase cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123218#M85962</link>
      <description>&lt;P&gt;Make sure that you have hbase-site.xml and core-site.xml ( from hadoop) in the classpath. You may set it by env variables HBASE_CONF_DIR and HADOOP_CONF_DIR.&lt;/P&gt;&lt;P&gt;Since Phoenix client works directly with HBase in the secured environment it needs keytabs for master and region servers. That’s why the hbase-site.xml is required. HBase client itself needs to know that the hadoop cluster is secured, so it needs only hadoop.security.authentication property from core-site.xml&lt;/P&gt;&lt;P&gt;The principal/keytab Phoenix using in the jdbc URL are for the user authentication only.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 06:06:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123218#M85962</guid>
      <dc:creator>ssoldatov</dc:creator>
      <dc:date>2016-06-07T06:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection error while secure Hbase cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123219#M85963</link>
      <description>&lt;P&gt;There may also be some issue communicating with the Master/RegionServers that is causing the client to hang. Check the HBase Master UI and make sure your RS's are online, there are no regions in transition, no "big scary red boxes", etc.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 06:14:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123219#M85963</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2016-06-07T06:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection error while secure Hbase cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123220#M85964</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/9125/spotluri.html" nodeid="9125"&gt;@spotluri&lt;/A&gt; &lt;/P&gt;&lt;P&gt;When I run !connect jdbc:phoenix:zkhostname.domain.com:2181:/hbase-secure:&lt;A href="mailto:hbase@HDP.DOMAIN.COM"&gt;hbase@HDP.DOMAIN.COM&lt;/A&gt;:/etc/security/keytabs/hbase.headless.keytab it's throwing below error.&lt;/P&gt;&lt;P&gt;"-bash: !connect: event not found"&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 07:47:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123220#M85964</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-06-07T07:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection error while secure Hbase cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123221#M85965</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/223/jelser.html" nodeid="223"&gt;&lt;/A&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 have check HBase Master/UI, RS are working. Even I'm able to login to 'hbase shell' and see tables. I'm getting above problem when I'm trying to connect with jdbc:phoenix only.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 07:52:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123221#M85965</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-06-07T07:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection error while secure Hbase cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123222#M85966</link>
      <description>&lt;P&gt;No. the above command is to be used inside beeline.&lt;/P&gt;&lt;P&gt;I am assuming you are trying to connect to phoenix python shell in which case these are the commands.&lt;/P&gt;&lt;P&gt;these are the commands in linux shell using which I was able to use to get in to phoenix shell in kerberized cluster.&lt;/P&gt;&lt;PRE&gt;export HBASE_CONF_PATH=/etc/hbase/conf:/etc/hadoop/conf&lt;/PRE&gt;&lt;P&gt;if you are logged in as your own user&lt;/P&gt;&lt;PRE&gt;kinit
/usr/hdp/current/phoenix-client/bin/sqlline.py hostname.domain.com:2181:/hbase-secure &lt;/PRE&gt;&lt;P&gt;if using logged in as hbase user &lt;/P&gt;&lt;PRE&gt;kinit -k -t /etc/security/keytabs/hbase.headless.keytab hbase
/usr/hdp/current/phoenix-client/bin/sqlline.py hostname.domain.com:2181:/hbase-secure:hbase@domain.com:/etc/security/keytabs/hbase.headless.keytab&lt;/PRE&gt;&lt;P&gt;then you can run following commands to show list of phoenix tables&lt;/P&gt;&lt;PRE&gt;!tables&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jun 2016 08:10:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Phoenix-connection-error-while-secure-Hbase-cluster/m-p/123222#M85966</guid>
      <dc:creator>spotluri</dc:creator>
      <dc:date>2016-06-07T08:10:04Z</dc:date>
    </item>
  </channel>
</rss>

