<?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: cant create a kerberos ticket in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-kerberos-ticket/m-p/132057#M47668</link>
    <description>&lt;P&gt;ok it worked , thanks a lot for your help  . I had to create the ticket as user hive before starting beeline.&lt;/P&gt;&lt;PRE&gt;[hive@hadoop1 ~]$ kinit hive
Password for hive@TOLLS.DOT.STATE.FL.US:
[hive@hadoop1 ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_1004
Default principal: hive@TOLLS.DOT.STATE.FL.US
Valid starting     Expires            Service principal
11/30/16 18:52:14  12/01/16 18:52:14  krbtgt/TOLLS.DOT.STATE.FL.US@TOLLS.DOT.STATE.FL.US
        renew until 11/30/16 18:52:14
[hive@hadoop1 ~]$ beeline
Beeline version 1.2.1000.2.5.0.0-1245 by Apache Hive
beeline&amp;gt; !connect jdbc:hive2://hadoop2:10000/default;principal=hive/hadoop2@TOLLS.DOT.STATE.FL.US
Connecting to jdbc:hive2://hadoop2:10000/default;principal=hive/hadoop2@TOLLS.DOT.STATE.FL.US
Enter username for jdbc:hive2://hadoop2:10000/default;principal=hive/hadoop2@TOLLS.DOT.STATE.FL.US: hive
Enter password for jdbc:hive2://hadoop2:10000/default;principal=hive/hadoop2@TOLLS.DOT.STATE.FL.US: *******
Connected to: Apache Hive (version 1.2.1000.2.5.0.0-1245)
Driver: Hive JDBC (version 1.2.1000.2.5.0.0-1245)
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:hive2://hadoop2:10000/default&amp;gt;


&lt;/PRE&gt;</description>
    <pubDate>Thu, 01 Dec 2016 07:54:14 GMT</pubDate>
    <dc:creator>aliyesami</dc:creator>
    <dc:date>2016-12-01T07:54:14Z</dc:date>
    <item>
      <title>cant create a kerberos ticket</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-kerberos-ticket/m-p/132053#M47664</link>
      <description>&lt;P&gt;I cant create  a ticket  I think I need one because beeline is failing to connect to hive2 server .&lt;/P&gt;&lt;PRE&gt;[root@hadoop1 ~]# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: admin/admin@TOLLS.DOT.STATE.FL.US
Valid starting     Expires            Service principal
11/30/16 17:00:42  12/01/16 17:00:42  krbtgt/TOLLS.DOT.STATE.FL.US@TOLLS.DOT.STATE.FL.US
        renew until 11/30/16 17:00:42
[root@hadoop1 ~]# kinit hive
kinit: Client not found in Kerberos database while getting initial credentials
[root@hadoop1 ~]#

&lt;/PRE&gt;&lt;P&gt;beeline error  &lt;/P&gt;&lt;PRE&gt;beeline&amp;gt; !connect jdbc:hive2://hadoop2:10000/default;principal=hive/hadoop2@TOLLS.DOT.STATE.FL.US
Connecting to jdbc:hive2://hadoop2:10000/default;principal=hive/hadoop2@TOLLS.DOT.STATE.FL.US
Enter username for jdbc:hive2://hadoop2:10000/default;principal=hive/hadoop2@TOLLS.DOT.STATE.FL.US: hive
Enter password for jdbc:hive2://hadoop2:10000/default;principal=hive/hadoop2@TOLLS.DOT.STATE.FL.US: *******
16/11/30 18:09:19 [main]: ERROR transport.TSaslTransport: SASL negotiation failure
javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:13:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-kerberos-ticket/m-p/132053#M47664</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-01T07:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: cant create a kerberos ticket</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-kerberos-ticket/m-p/132054#M47665</link>
      <description>&lt;P&gt;" Error: Client not found in Kerberos database while getting initial credentials" , is saying that principal 'hive' is not in the KDC , you need to create one to do a kinit with it.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:25:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-kerberos-ticket/m-p/132054#M47665</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2016-12-01T07:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: cant create a kerberos ticket</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-kerberos-ticket/m-p/132055#M47666</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;P&gt;This is the right way to get service tickets.&lt;/P&gt;&lt;PRE&gt;[root@gwy-ravi ~]#
[root@gwy-ravi ~]#
[root@gwy-ravi ~]# klist -kt /etc/security/keytabs/hive.service.keytab
Keytab name: FILE:/etc/security/keytabs/hive.service.keytab
KVNO Timestamp         Principal
---- ----------------- --------------------------------------------------------
   2 11/16/16 22:54:16 hive/gwy-ravi.ironman.com@RAVI.COM
   2 11/16/16 22:54:16 hive/gwy-ravi.ironman.com@RAVI.COM
   2 11/16/16 22:54:16 hive/gwy-ravi.ironman.com@RAVI.COM
   2 11/16/16 22:54:16 hive/gwy-ravi.ironman.com@RAVI.COM
   2 11/16/16 22:54:16 hive/gwy-ravi.ironman.com@RAVI.COM
[root@gwy-ravi ~]# kinit -kt /etc/security/keytabs/hive.service.keytab hive/gwy-ravi.ironman.com@RAVI.COM
[root@gwy-ravi ~]#
[root@gwy-ravi ~]# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: hive/gwy-ravi.ironman.com@RAVI.COM


Valid starting     Expires            Service principal
11/30/16 23:28:30  12/01/16 23:28:30  krbtgt/RAVI.COM@RAVI.COM
	renew until 11/30/16 23:28:30
[root@gwy-ravi ~]#
&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:29:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-kerberos-ticket/m-p/132055#M47666</guid>
      <dc:creator>Ravi_G</dc:creator>
      <dc:date>2016-12-01T07:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: cant create a kerberos ticket</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-kerberos-ticket/m-p/132056#M47667</link>
      <description>&lt;P&gt;ok I created the hive/admin principal in KDC is this correct ?  &lt;/P&gt;&lt;PRE&gt;[root@hadoop1 ~]# kadmin.local
Authenticating as principal admin/admin@TOLLS.DOT.STATE.FL.US with password.
kadmin.local:  addprinc hive/admin
WARNING: no policy specified for hive/admin@TOLLS.DOT.STATE.FL.US; defaulting to no policy
Enter password for principal "hive/admin@TOLLS.DOT.STATE.FL.US":
Re-enter password for principal "hive/admin@TOLLS.DOT.STATE.FL.US":
Principal "hive/admin@TOLLS.DOT.STATE.FL.US" created.
[root@hadoop1 ~]# kinit hive/admin
Password for hive/admin@TOLLS.DOT.STATE.FL.US:
[root@hadoop1 ~]# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: hive/admin@TOLLS.DOT.STATE.FL.US
Valid starting     Expires            Service principal
11/30/16 18:45:50  12/01/16 18:45:50  krbtgt/TOLLS.DOT.STATE.FL.US@TOLLS.DOT.STATE.FL.US
        renew until 11/30/16 18:45:50
&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:36:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-kerberos-ticket/m-p/132056#M47667</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-01T07:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: cant create a kerberos ticket</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-kerberos-ticket/m-p/132057#M47668</link>
      <description>&lt;P&gt;ok it worked , thanks a lot for your help  . I had to create the ticket as user hive before starting beeline.&lt;/P&gt;&lt;PRE&gt;[hive@hadoop1 ~]$ kinit hive
Password for hive@TOLLS.DOT.STATE.FL.US:
[hive@hadoop1 ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_1004
Default principal: hive@TOLLS.DOT.STATE.FL.US
Valid starting     Expires            Service principal
11/30/16 18:52:14  12/01/16 18:52:14  krbtgt/TOLLS.DOT.STATE.FL.US@TOLLS.DOT.STATE.FL.US
        renew until 11/30/16 18:52:14
[hive@hadoop1 ~]$ beeline
Beeline version 1.2.1000.2.5.0.0-1245 by Apache Hive
beeline&amp;gt; !connect jdbc:hive2://hadoop2:10000/default;principal=hive/hadoop2@TOLLS.DOT.STATE.FL.US
Connecting to jdbc:hive2://hadoop2:10000/default;principal=hive/hadoop2@TOLLS.DOT.STATE.FL.US
Enter username for jdbc:hive2://hadoop2:10000/default;principal=hive/hadoop2@TOLLS.DOT.STATE.FL.US: hive
Enter password for jdbc:hive2://hadoop2:10000/default;principal=hive/hadoop2@TOLLS.DOT.STATE.FL.US: *******
Connected to: Apache Hive (version 1.2.1000.2.5.0.0-1245)
Driver: Hive JDBC (version 1.2.1000.2.5.0.0-1245)
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:hive2://hadoop2:10000/default&amp;gt;


&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:54:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-kerberos-ticket/m-p/132057#M47668</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-01T07:54:14Z</dc:date>
    </item>
  </channel>
</rss>

