<?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: beeline returns &amp;quot;Failed to find any Kerberos tgt&amp;quot; after enabling kerberos in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96917#M10439</link>
    <description>&lt;P&gt;How do you fix the problem?&lt;/P&gt;&lt;P&gt;Can you please post the detail steps?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2016 22:38:37 GMT</pubDate>
    <dc:creator>guostong</dc:creator>
    <dc:date>2016-05-11T22:38:37Z</dc:date>
    <item>
      <title>beeline returns "Failed to find any Kerberos tgt" after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96908#M10430</link>
      <description>&lt;P&gt;Basically followed the instruction in &lt;A href="http://hortonworks.com/blog/enabling-kerberos-hdp-active-directory-integration/" target="_blank"&gt;http://hortonworks.com/blog/enabling-kerberos-hdp-active-directory-integration/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From ambari, everything looks OK but beeline command fails with "GSS initiate failed (state=08S01,code=0)"&lt;/P&gt;&lt;PRE&gt;Caused by: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
        at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:147)
        at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:121)
        at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187)
        at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:223)
        at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)
        at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
        at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:193)
        ... 28 more
&lt;/PRE&gt;&lt;P&gt;Checked time is synchronized and resolving IP/hostname is correct.&lt;/P&gt;&lt;P&gt;Built another HDP 2.3.2 and Ambari 2.1.2 without AD this time (simple MIT KDC)&lt;/P&gt;&lt;P&gt;And Ambari looks OK but, again, beeline fails with same error.&lt;/P&gt;&lt;P&gt;How I'm starting beeline is like below:&lt;/P&gt;&lt;P&gt;su - hive&lt;/P&gt;&lt;P&gt;beeline -u "jdbc:hive2://hiveserver2_fqdn:10000/default;principal=hive/hiveserver2_fqdn@MY_REALM"&lt;/P&gt;&lt;P&gt;I think i'm forgetting some setting...&lt;/P&gt;&lt;P&gt;I appreciate any advice from you.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 17:27:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96908#M10430</guid>
      <dc:creator>hosako</dc:creator>
      <dc:date>2015-11-11T17:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: beeline returns "Failed to find any Kerberos tgt" after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96909#M10431</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/206/hosako.html" nodeid="206"&gt;@Hajime&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Failed to find Kerberos tgt &lt;/P&gt;&lt;P&gt;No valid credentials provided&lt;/P&gt;&lt;P&gt;Make sure that you have ticket&lt;/P&gt;&lt;P&gt;klist &lt;/P&gt;&lt;P&gt;kint -kt ( please check official docs on Kerberos setup) &lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 17:34:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96909#M10431</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-11T17:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: beeline returns "Failed to find any Kerberos tgt" after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96910#M10432</link>
      <description>&lt;P&gt;That's something i'm not sure. If i use hive/FQDN@MY_REALM with kinit, i can use "hdfs dfs -ls" command, then I started beeline, then get this error. &lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 17:43:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96910#M10432</guid>
      <dc:creator>hosako</dc:creator>
      <dc:date>2015-11-11T17:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: beeline returns "Failed to find any Kerberos tgt" after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96911#M10433</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/206/hosako.html" nodeid="206"&gt;@Hajime&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Paste the output of klist&lt;/P&gt;&lt;P&gt;And search for Kerberos in hive configs by using filter option and paste the screenshot or config settings here &lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 17:56:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96911#M10433</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-11T17:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: beeline returns "Failed to find any Kerberos tgt" after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96912#M10434</link>
      <description>&lt;P&gt;Your beeline command is fine and should work.&lt;/P&gt;&lt;P&gt;Could you please check your Namenode and Hive log to see if there are any kerberos-related issues? I have seen clusters with a green status in Ambari, but the log files were full of Kerberos authentication failures.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 18:00:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96912#M10434</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2015-11-11T18:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: beeline returns "Failed to find any Kerberos tgt" after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96913#M10435</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/206/hosako.html" nodeid="206"&gt;@Hajime&lt;/A&gt; Based on the error messages , I can see that Kerberos is not setup correctly.&lt;/P&gt;&lt;P&gt;Please follow &lt;A target="_blank" href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_Ambari_Security_Guide/content/ch_configuring_amb_hdp_for_kerberos.html"&gt;this&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 18:20:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96913#M10435</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-11T18:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: beeline returns "Failed to find any Kerberos tgt" after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96914#M10436</link>
      <description>&lt;P&gt;I have the same probem.&lt;/P&gt;&lt;P&gt;Lines from hive-site.xml:&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;

  &amp;lt;name&amp;gt;hive.server2.authentication&amp;lt;/name&amp;gt;

  &amp;lt;value&amp;gt;KERBEROS&amp;lt;/value&amp;gt;

  &amp;lt;/property&amp;gt;



  &amp;lt;property&amp;gt;

&amp;lt;name&amp;gt;hive.server2.authentication.kerberos.keytab&amp;lt;/name&amp;gt;

&amp;lt;value&amp;gt;/etc/security/keytabs/hive.service.keytab&amp;lt;/value&amp;gt;

  &amp;lt;/property&amp;gt;



  &amp;lt;property&amp;gt;

&amp;lt;name&amp;gt;hive.server2.authentication.kerberos.principal&amp;lt;/name&amp;gt;

  &amp;lt;value&amp;gt;&lt;A href="mailto:hive/_HOST@EXAMPLE.COM"&gt;hive/_HOST@EXAMPLE.COM&lt;/A&gt;&amp;lt;/value&amp;gt;

  &amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;[margusja@sandbox ~]$ kinit -R &lt;/P&gt;&lt;P&gt;[margusja@sandbox ~]$ klist -f
Ticket cache: FILE:/tmp/krb5cc_1024 Default principal: margusja@EXAMPLE.COM
Valid starting     Expires            Service principal
01/10/16 08:13:21  01/11/16 08:13:21  krbtgt/EXAMPLE.COM@EXAMPLE.COM
renew until 01/17/16 08:07:43, Flags: FRIT &lt;/P&gt;&lt;P&gt;I can use hdfs:&lt;/P&gt;&lt;P&gt;[margusja@sandbox ~]$ hdfs dfs -ls /
Found 9 items
drwxrwxrwx   - yarn   hadoop          0 2016-01-10 07:19 /app-logs
drwxr-xr-x   - hdfs   hdfs            0 2015-10-27 13:19 /apps
drwxr-xr-x   - hdfs   hdfs            0 2015-10-27 13:06 /demo
drwxr-xr-x   - hdfs   hdfs            0 2015-10-27 12:39 /hdp
drwxr-xr-x   - mapred hdfs            0 2015-10-27 12:39 /mapred
drwxrwxrwx   - mapred hadoop          0 2015-10-27 12:40 /mr-history
drwxrwxrwx   - hdfs   hdfs            0 2015-10-27 13:12 /ranger
drwxrwxrwx   - hdfs   hdfs            0 2015-10-27 12:54 /tmp
drwxr-xr-x   - hdfs   hdfs            0 2016-01-09 19:39 /user
&lt;/P&gt;&lt;P&gt;But I can not use beeline:&lt;/P&gt;&lt;P&gt;&lt;A href="http://pastebin.com/7AyhpYsq"&gt;http://pastebin.com/7AyhpYsq&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Br, Margusja&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2016 16:16:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96914#M10436</guid>
      <dc:creator>margusja</dc:creator>
      <dc:date>2016-01-10T16:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: beeline returns "Failed to find any Kerberos tgt" after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96915#M10437</link>
      <description>&lt;P&gt;Same issue as &lt;A rel="user" href="https://community.cloudera.com/users/2028/margus.html" nodeid="2028"&gt;@Margus Roo&lt;/A&gt;,  I use sandbox 2.4&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 20:18:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96915#M10437</guid>
      <dc:creator>jzhang</dc:creator>
      <dc:date>2016-03-15T20:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: beeline returns "Failed to find any Kerberos tgt" after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96916#M10438</link>
      <description>&lt;P&gt;I resolved this problem after debugging kerberos traffic. I set export HADOOP_OPTS="-Dsun.security.krb5.debug=true" in command line and then used beeline command. It showed what was wrong with TGT.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 20:27:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96916#M10438</guid>
      <dc:creator>margusja</dc:creator>
      <dc:date>2016-03-15T20:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: beeline returns "Failed to find any Kerberos tgt" after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96917#M10439</link>
      <description>&lt;P&gt;How do you fix the problem?&lt;/P&gt;&lt;P&gt;Can you please post the detail steps?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 22:38:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-returns-quot-Failed-to-find-any-Kerberos-tgt-quot/m-p/96917#M10439</guid>
      <dc:creator>guostong</dc:creator>
      <dc:date>2016-05-11T22:38:37Z</dc:date>
    </item>
  </channel>
</rss>

