<?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 in kerberos cluster failing in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231017#M79674</link>
    <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;!&lt;BR /&gt;Did you tried to add the principal + keytab path into your jdbc string connection? &lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;jdbc:phoenix:&amp;lt;ZK-QUORUM&amp;gt;:&amp;lt;ZK-PORT&amp;gt;:&amp;lt;ZK-HBASE-NODE&amp;gt;:principal_name@REALM:/path/to/keytab&lt;/PRE&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2018 23:26:38 GMT</pubDate>
    <dc:creator>vmurakami</dc:creator>
    <dc:date>2018-06-18T23:26:38Z</dc:date>
    <item>
      <title>Phoenix connection in kerberos cluster failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231016#M79673</link>
      <description>&lt;P&gt;i do have a Kerberos ticket  but i get error connecting to Phoenix.&lt;/P&gt;&lt;P&gt;We are using Ranger, does the admin have to give privileges via Ranger?&lt;/P&gt;&lt;PRE&gt;[kn857sa@dotstohdaut202 conf]$ sqlline.py dotstohdamn201:2181:/hbase-secure
Setting property: [incremental, false]
Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect jdbc:phoenix:dotstohdamn201:2181:/hbase-secure none none org.apache.phoenix.jdbc.PhoenixDriver
Connecting to jdbc:phoenix:dotstohdamn201:2181:/hbase-secure
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.6.2.0-205/phoenix/phoenix-4.7.0.2.6.2.0-205-client.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.6.2.0-205/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.
18/06/18 11:34:46 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
18/06/18 11:34:47 WARN shortcircuit.DomainSocketFactory: The short-circuit local reads feature cannot be used because libhadoop cannot be loaded.
18/06/18 11:34:47 WARN ipc.AbstractRpcClient: Exception encountered while connecting to the server : javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
18/06/18 11:34:47 FATAL ipc.AbstractRpcClient: SASL authentication failed. The most likely cause is missing or invalid credentials. Consider 'kinit'.
javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
        at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:211)
        at org.apache.hadoop.hbase.security.HBaseSaslRpcClient.saslConnect(HBaseSaslRpcClient.java:179)
        at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupSaslConnection(RpcClientImpl.java:611)
        at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.access$600(RpcClientImpl.java:156)
        at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection$2.run(RpcClientImpl.java:737)
        at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection$2.run(RpcClientImpl.java:734)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        &lt;/PRE&gt;&lt;P&gt;ticket &lt;/P&gt;&lt;PRE&gt;[kn857sa@dotstohdaut202 conf]$ klist
Ticket cache: FILE:/tmp/krb5cc_1696202362
Default principal: &lt;A href="mailto:kn857sa@xxxxxxxx.US"&gt;kn857sa@xxxxxxxx.US&lt;/A&gt;
Valid starting       Expires              Service principal
06/18/2018 10:53:54  06/18/2018 20:53:54  &lt;A href="mailto:krbtgt/xxxxxxx@xxxxxx.US"&gt;krbtgt/xxxxxxx@xxxxxx.US&lt;/A&gt;
        renew until 06/25/2018 10:53:54
06/18/2018 10:53:54  06/18/2018 20:53:54  &lt;A href="mailto:krbtgt/xxxxxxx@xxxxxx.US"&gt;krbtgt/xxxxxxx@xxxxxx.US&lt;/A&gt;
        renew until 06/25/2018 10:53:54
[kn857sa@dotstohdaut202 conf]$


&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jun 2018 22:43:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231016#M79673</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-06-18T22:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection in kerberos cluster failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231017#M79674</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;!&lt;BR /&gt;Did you tried to add the principal + keytab path into your jdbc string connection? &lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;jdbc:phoenix:&amp;lt;ZK-QUORUM&amp;gt;:&amp;lt;ZK-PORT&amp;gt;:&amp;lt;ZK-HBASE-NODE&amp;gt;:principal_name@REALM:/path/to/keytab&lt;/PRE&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 23:26:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231017#M79674</guid>
      <dc:creator>vmurakami</dc:creator>
      <dc:date>2018-06-18T23:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection in kerberos cluster failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231018#M79675</link>
      <description>&lt;P&gt;I did that but then i get the error   as shown below &lt;/P&gt;&lt;PRE&gt;sqlline.py dotstohdamn201.tolls.dot.state.fl.us:2181:/hbase-secure/hbase:kn857sa@XXXX.US:/etc/krb5.keytab
&lt;/PRE&gt;&lt;P&gt;error &lt;/P&gt;&lt;PRE&gt;rror: ERROR 103 (08004): Unable to establish connection. (state=08004,code=103)
java.sql.SQLException: ERROR 103 (08004): Unable to establish connection.
        at org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:443)
        at org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:145)
        at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver$ConnectionInfo.normalize(PhoenixEmbeddedDriver.java:396)
        at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:219)
        at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:150)
        at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:205)
        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:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        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)
Caused by: java.io.IOException: Login failure for kn857sa@XXXXXX.US from keytab /etc/krb5.keytab: javax.security.auth.login.LoginException: Unable to obtain password from user


&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jun 2018 23:48:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231018#M79675</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-06-18T23:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection in kerberos cluster failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231019#M79676</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like there is problem with your keytab/principal.&lt;/P&gt;&lt;PRE&gt;Caused by: java.io.IOException: Login failure for kn857sa@XXXXXX.US from keytab /etc/krb5.keytab: javax.security.auth.login.LoginException: Unable to obtain password from user
&lt;/PRE&gt;&lt;P&gt;Can you try doing kinit as below and see if it executes successfully: &lt;/P&gt;&lt;PRE&gt;kinit -kt /etc/krb5.keytab kn857sa@XXXXXX.US&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jun 2018 00:04:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231019#M79676</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-06-19T00:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection in kerberos cluster failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231020#M79677</link>
      <description>&lt;P&gt;i get permission denied   but then if i do a simple kinit it works ..whats the difference ?&lt;/P&gt;&lt;PRE&gt;[kn857sa@dotstohdaut202 log]$ kinit -kt /etc/krb5.keytab &lt;A href="mailto:kn857sa@XXXXXXXXX.US"&gt;kn857sa@XXXXXXXXX.US&lt;/A&gt;
kinit: Pre-authentication failed: Permission denied while getting initial credentials
[kn857sa@dotstohdaut202 log]$
[kn857sa@dotstohdaut202 log]$ kinit
Password for &lt;A href="mailto:kn857sa@XXXXXXXXX.US"&gt;kn857sa@XXXXXXXXX.US&lt;/A&gt;:
[kn857sa@dotstohdaut202 log]$ klist
Ticket cache: FILE:/tmp/krb5cc_1696202362
Default principal: &lt;A href="mailto:kn857sa@XXXXXXXXXXX.US"&gt;kn857sa@XXXXXXXXXXX.US&lt;/A&gt;
Valid starting       Expires              Service principal
06/18/2018 13:04:45  06/18/2018 23:04:45  krbtgt/TOLLS.DOT.STATE.FL.US@XXXXXXXXXXXX.US
        renew until 06/25/2018 13:04:36
[kn857sa@dotstohdaut202 log]$

&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jun 2018 00:10:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231020#M79677</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-06-19T00:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection in kerberos cluster failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231021#M79678</link>
      <description>&lt;P&gt;Then there is some issue with the keytab. In the second attempt a password was provided instead of keytab. &lt;/P&gt;&lt;P&gt;Please check if its a valid keytab and make the kinit command. Then you can use the same in phoenix connection. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 00:29:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231021#M79678</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-06-19T00:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection in kerberos cluster failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231022#M79679</link>
      <description>&lt;P&gt;if i do a klist -k   i do see its going to the /etc/krb5.keytab but i don't have privilege to read it .&lt;/P&gt;&lt;P&gt;how else can i check ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 00:38:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231022#M79679</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-06-19T00:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection in kerberos cluster failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231023#M79680</link>
      <description>&lt;P&gt;You'd need to get the read access to the keytab file.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 00:44:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231023#M79680</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-06-19T00:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection in kerberos cluster failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231024#M79681</link>
      <description>&lt;P&gt;if i do  "kinit "  does it use a keytab file . .if yes which one ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 00:56:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231024#M79681</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-06-19T00:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection in kerberos cluster failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231025#M79682</link>
      <description>&lt;P&gt;keyatab should be owned by the owner, If that keytab belongs to your user. you should have read permissions. Pls check more on this with your system admins. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 01:05:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231025#M79682</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-06-19T01:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection in kerberos cluster failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231026#M79683</link>
      <description>&lt;P&gt;when i do a "kinit"  am i not using a keytab?   if yes which keytab i am using?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 01:08:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231026#M79683</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-06-19T01:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix connection in kerberos cluster failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231027#M79684</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;!&lt;BR /&gt;So answering your questions, usually when you use kinit -kt command you're passing a keytab file, and when you don't use it -kt (only kinit), you will use a password authentication. &lt;BR /&gt;In all of my jobs when I had a kerberized environment, usually the sysadmin gave a keytab file to my user or service. It's a common practice, since most of the components in Hadoop works pretty well with keytabs instead of passphrases for principals in KRB. &lt;BR /&gt;In your case, if you don't have a keytab, the best approach would be to ask for the sysadmin to generate a keytab for you. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 01:25:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-connection-in-kerberos-cluster-failing/m-p/231027#M79684</guid>
      <dc:creator>vmurakami</dc:creator>
      <dc:date>2018-06-19T01:25:06Z</dc:date>
    </item>
  </channel>
</rss>

