<?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 secured cluster throws errors in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-connection-in-secured-cluster-throws-errors/m-p/125248#M39110</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2924/ssoldatov.html" nodeid="2924"&gt;@ssoldatov&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I guess I did not pasted the syntax properly , below was the syntax I used . As the implementation is a standalone KDC , hence passing the keytab info with the syntax.&lt;/P&gt;&lt;P&gt;/usr/hdp/current/phoenix-client/bin/sqlline.py &amp;lt;ZOOKEEPER-NODE&amp;gt;:2181:/hbase-secure:&amp;lt;USERNAME&amp;gt;@&amp;lt;REALM&amp;gt;:&amp;lt;KEYTAB PATH&amp;gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2016 10:23:41 GMT</pubDate>
    <dc:creator>jagdish</dc:creator>
    <dc:date>2016-08-30T10:23:41Z</dc:date>
    <item>
      <title>phoenix connection in secured cluster throws errors</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-connection-in-secured-cluster-throws-errors/m-p/125246#M39108</link>
      <description>&lt;P&gt;user tickets are valid and have been verified , but when the below commands are executed below is the error that comes up . &lt;/P&gt;&lt;P&gt;================&lt;/P&gt;&lt;P&gt;[&amp;lt;username@&amp;lt;hostname&amp;gt; ~]$ export HBASE_CONF_PATH=/etc/hbase/conf:/etc/hadoop/conf &lt;/P&gt;&lt;P&gt;[&amp;lt;username@&amp;lt;hostname&amp;gt; ~]$ /usr/hdp/current/phoenix-client/bin/sqlline.py &amp;lt;zookeeper-node&amp;gt;:2181:/hbase-secure:&amp;lt;user-principal&amp;gt;:&amp;lt;user keytab&amp;gt;&lt;/P&gt;&lt;P&gt;===============&lt;/P&gt;&lt;P&gt;Mon Aug 29 13:44:54 CDT 2016, RpcRetryingCaller{globalStartTime=1472495354480, pause=100, retries=35}, org.apache.hadoop.hbase.MasterNotRunningException: com.google.protobuf.ServiceException: java.io.IOException: Couldn't setup connection for &amp;lt;USERNAME&amp;gt;@&amp;lt;REALM&amp;gt; to hbase/&amp;lt;FQDN&amp;gt;@&amp;lt;REALM&amp;gt;
        at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:147)
        at org.apache.hadoop.hbase.client.HBaseAdmin.executeCallable(HBaseAdmin.java:3917)
        at org.apache.hadoop.hbase.client.HBaseAdmin.getTableDescriptor(HBaseAdmin.java:441)
        at org.apache.hadoop.hbase.client.HBaseAdmin.getTableDescriptor(HBaseAdmin.java:463)
        at org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureTableCreated(ConnectionQueryServicesImpl.java:815)
        ... 31 more
Caused by: org.apache.hadoop.hbase.MasterNotRunningException: com.google.protobuf.ServiceException: java.io.IOException: Couldn't setup connection for &amp;lt;USERNAME&amp;gt;@&amp;lt;REALM&amp;gt; to hbase/&amp;lt;FQDN&amp;gt;@&amp;lt;REALM&amp;gt;
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation$StubMaker.makeStub(ConnectionManager.java:1533)
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation$MasterServiceStubMaker.makeStub(ConnectionManager.java:1553)
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.getKeepAliveMasterService(ConnectionManager.java:1704)
        at org.apache.hadoop.hbase.client.MasterCallable.prepare(MasterCallable.java:38)
        at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:124)
        ... 35 more
Caused by: com.google.protobuf.ServiceException: java.io.IOException: Couldn't setup connection for &amp;lt;USERNAME&amp;gt;@&amp;lt;REALM&amp;gt; to hbase/&amp;lt;FQDN&amp;gt;@&amp;lt;REALM&amp;gt;
        at org.apache.hadoop.hbase.ipc.AbstractRpcClient.callBlockingMethod(AbstractRpcClient.java:223)
        at org.apache.hadoop.hbase.ipc.AbstractRpcClient$BlockingRpcChannelImplementation.callBlockingMethod(AbstractRpcClient.java:287)
        at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$BlockingStub.isMasterRunning(MasterProtos.java:50918)
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation$MasterServiceStubMaker.isMasterRunning(ConnectionManager.java:1564)
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation$StubMaker.makeStubNoRetries(ConnectionManager.java:1502)
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation$StubMaker.makeStub(ConnectionManager.java:1524)
        ... 39 more
Caused by: java.io.IOException: Couldn't setup connection for &amp;lt;USERNAME&amp;gt;@&amp;lt;REALM&amp;gt; to hbase/&amp;lt;FQDN&amp;gt;@&amp;lt;REALM&amp;gt;
        at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection$1.run(RpcClientImpl.java:665)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
        at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.handleSaslConnectionFailure(RpcClientImpl.java:637)
        at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupIOstreams(RpcClientImpl.java:745)
        at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.writeRequest(RpcClientImpl.java:887)
        at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.tracedWriteRequest(RpcClientImpl.java:856)
        at org.apache.hadoop.hbase.ipc.RpcClientImpl.call(RpcClientImpl.java:1200)
        at org.apache.hadoop.hbase.ipc.AbstractRpcClient.callBlockingMethod(AbstractRpcClient.java:213)
        ... 44 more
Caused by: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Fail to create credential. (63) - No service creds)]
        at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:212)
        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:415)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
        at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupIOstreams(RpcClientImpl.java:734)
        ... 48 more
Caused by: GSSException: No valid credentials provided (Mechanism level: Fail to create credential. (63) - No service creds)
        at sun.security.jgss.krb5.Krb5Context.initSecContext(Krb5Context.java:710)
        at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:248)
        at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
        at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:193)
        ... 57 more
Caused by: KrbException: Fail to create credential. (63) - No service creds
        at sun.security.krb5.internal.CredentialsUtil.acquireServiceCreds(CredentialsUtil.java:282)
        at sun.security.krb5.Credentials.acquireServiceCreds(Credentials.java:456)
        at sun.security.jgss.krb5.Krb5Context.initSecContext(Krb5Context.java:641)
        ... 60 more
sqlline version 1.1.8&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 02:12:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-connection-in-secured-cluster-throws-errors/m-p/125246#M39108</guid>
      <dc:creator>jagdish</dc:creator>
      <dc:date>2016-08-30T02:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix connection in secured cluster throws errors</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-connection-in-secured-cluster-throws-errors/m-p/125247#M39109</link>
      <description>&lt;P&gt;If you are using existing TGT, you need to specify only quorum/port/zknode params in the command line: &lt;/P&gt;&lt;PRE&gt;phoenix-sqlline localhost:2181:/hbase-secure&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2016 02:37:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-connection-in-secured-cluster-throws-errors/m-p/125247#M39109</guid>
      <dc:creator>ssoldatov</dc:creator>
      <dc:date>2016-08-30T02:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix connection in secured cluster throws errors</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-connection-in-secured-cluster-throws-errors/m-p/125248#M39110</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2924/ssoldatov.html" nodeid="2924"&gt;@ssoldatov&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I guess I did not pasted the syntax properly , below was the syntax I used . As the implementation is a standalone KDC , hence passing the keytab info with the syntax.&lt;/P&gt;&lt;P&gt;/usr/hdp/current/phoenix-client/bin/sqlline.py &amp;lt;ZOOKEEPER-NODE&amp;gt;:2181:/hbase-secure:&amp;lt;USERNAME&amp;gt;@&amp;lt;REALM&amp;gt;:&amp;lt;KEYTAB PATH&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:23:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-connection-in-secured-cluster-throws-errors/m-p/125248#M39110</guid>
      <dc:creator>jagdish</dc:creator>
      <dc:date>2016-08-30T10:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix connection in secured cluster throws errors</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-connection-in-secured-cluster-throws-errors/m-p/125249#M39111</link>
      <description>&lt;P&gt;You need specify the quorum host. And you don't need to put :@: in the connection string if you are using existing tgt. But  if you want to specify keytab and principal,  than you need to specify them in the connection string:&lt;/P&gt;&lt;P&gt;sqlline.py localhost:2181:/hbase-secure:hbase@HW.COM:/etc/security/keytabs/hbase.keytab&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 13:02:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-connection-in-secured-cluster-throws-errors/m-p/125249#M39111</guid>
      <dc:creator>ssoldatov</dc:creator>
      <dc:date>2016-08-30T13:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix connection in secured cluster throws errors</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-connection-in-secured-cluster-throws-errors/m-p/125250#M39112</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2924/ssoldatov.html" nodeid="2924" target="_blank"&gt;@ssoldatov&lt;/A&gt; &lt;/P&gt;&lt;P&gt;for some reason my syntax is not coming through proper . I did put in the zookeeper node and i want to use a specific keytab. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7092-community-1.png" style="width: 1139px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22692iADAF792E5CAA33A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="7092-community-1.png" alt="7092-community-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:10:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-connection-in-secured-cluster-throws-errors/m-p/125250#M39112</guid>
      <dc:creator>jagdish</dc:creator>
      <dc:date>2019-08-19T10:10:59Z</dc:date>
    </item>
  </channel>
</rss>

