<?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: Kerberos principal should have 3 parts in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-principal-should-have-3-parts/m-p/126644#M22852</link>
    <description>&lt;P&gt;it is confusing that the principal is the &lt;A href="mailto:hive/_HOST@COMPANY.COM"&gt;hive/_HOST@COMPANY.COM&lt;/A&gt; is required, when hiveserver2 is already using that principal.  I will test kinit with this combination and post back.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2016 20:54:20 GMT</pubDate>
    <dc:creator>dallin_young</dc:creator>
    <dc:date>2016-03-15T20:54:20Z</dc:date>
    <item>
      <title>Kerberos principal should have 3 parts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-principal-should-have-3-parts/m-p/126641#M22849</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to migrate to beeline from HIVE CLI.  This is become troublesome for many reason, however the show stopper is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;beeline&amp;gt; !connect jdbc:hive2://somehost.company.com:10000/default;principal=user@COMPANY.COM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kerberos principal should have 3 parts: &lt;A href="mailto:user@COMPANY.COM"&gt;user@COMPANY.COM&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our users are going to have only 2 part principals when they login to the Linux shell.  Issuing tickets for every user for every system is not an option and creates a huge deployment nightmare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if anyone has found a solution to this issue.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dallin &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/99/bwilson.html" nodeid="99"&gt;@Brandon Wilson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 00:20:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-principal-should-have-3-parts/m-p/126641#M22849</guid>
      <dc:creator>dallin_young</dc:creator>
      <dc:date>2016-03-15T00:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos principal should have 3 parts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-principal-should-have-3-parts/m-p/126642#M22850</link>
      <description>&lt;P&gt;Kerberos user principals have 2 parts (otherwise you'd be right... that would be a deployment nightmare!).&lt;/P&gt;&lt;P&gt;Only host-based service principals have 3 parts (the extra part being the host where the service is running). In the beeline connect string you should always use the hive service principal for the HiveServer2 instance to which you are connecting. Another option is to use _HOST instead of the specific hostname, which will be expanded to the correct host.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;kinit myuser@COMPANY.COM
beeline&amp;gt; !connect jdbc:hive2://somehost.company.com:10000/default;principal=hive/_HOST@COMPANY.COM
&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Mar 2016 01:19:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-principal-should-have-3-parts/m-p/126642#M22850</guid>
      <dc:creator>amiller</dc:creator>
      <dc:date>2016-03-15T01:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos principal should have 3 parts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-principal-should-have-3-parts/m-p/126643#M22851</link>
      <description>&lt;P&gt;Any idea why this parameter is required at all? Hiveserver should know which principal it is started with. Why would you have to tell it again?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 03:16:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-principal-should-have-3-parts/m-p/126643#M22851</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-03-15T03:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos principal should have 3 parts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-principal-should-have-3-parts/m-p/126644#M22852</link>
      <description>&lt;P&gt;it is confusing that the principal is the &lt;A href="mailto:hive/_HOST@COMPANY.COM"&gt;hive/_HOST@COMPANY.COM&lt;/A&gt; is required, when hiveserver2 is already using that principal.  I will test kinit with this combination and post back.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 20:54:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-principal-should-have-3-parts/m-p/126644#M22852</guid>
      <dc:creator>dallin_young</dc:creator>
      <dc:date>2016-03-15T20:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos principal should have 3 parts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-principal-should-have-3-parts/m-p/126645#M22853</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working. Confusing, but working.  Thanks for the help.&lt;/P&gt;&lt;PRE&gt;$ klist
Ticket cache: FILE:/tmp/krb5cc_1234
Default principal: &lt;A href="mailto:user1@COMPANY.COM"&gt;user1@COMPANY.COM&lt;/A&gt;
Valid starting  Expires  Service principal
03/15/16 14:08:08  03/22/16 14:08:08  &lt;A href="mailto:krbtgt/COMPANY.COM@COMPANY.COM"&gt;krbtgt/COMPANY.COM@COMPANY.COM&lt;/A&gt;
  renew until 03/22/16 14:08:08&lt;/PRE&gt;&lt;PRE&gt;$ beeline -u 'jdbc:hive2://hiveserver.company.com:10000/default;principal=hive/_HOST@COMPANY.COM'
scan complete in 3ms
Connecting to jdbc:hive2://hiveserver.company.com:10000/default;principal=hive/_HOST@COMPANY.COM
Connected to: Apache Hive (version 0.13.1.2.1.15.0-946)
Driver: Hive JDBC (version 0.13.1.2.1.15.0-946)
Transaction isolation: TRANSACTION_REPEATABLE_READ
Beeline version 0.13.1.2.1.15.0-946 by Apache Hive
0: jdbc:hive2://hiveserver.company.com:1&amp;gt; use database1;
No rows affected (0.019 seconds)
0: jdbc:hive2://hiveserver.company.com:1&amp;gt; describe table1;
+-------------------------------+------------+----------+
|  col_name  | data_type  | comment  |
+-------------------------------+------------+----------+
| column1  | string  |  |
....
| column2  | string  |  |
+-------------------------------+------------+----------+
40 rows selected (0.144 seconds)&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Mar 2016 21:40:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-principal-should-have-3-parts/m-p/126645#M22853</guid>
      <dc:creator>dallin_young</dc:creator>
      <dc:date>2016-03-15T21:40:41Z</dc:date>
    </item>
  </channel>
</rss>

