<?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: how to use 'HS2Driver' driver class to connect cdh hive with kerberos in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-use-HS2Driver-driver-class-to-connect-cdh-hive-with/m-p/373595#M241648</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105832"&gt;@sevens&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Hive experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70785"&gt;@Shmoo&lt;/a&gt;&amp;nbsp;&amp;nbsp;and&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12885"&gt;@mszurap&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 22:10:41 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2023-07-05T22:10:41Z</dc:date>
    <item>
      <title>how to use 'HS2Driver' driver class to connect cdh hive with kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-use-HS2Driver-driver-class-to-connect-cdh-hive-with/m-p/373566#M241633</link>
      <description>&lt;P&gt;driver class:&amp;nbsp;com.cloudera.hive.jdbc.HS2Driver&lt;/P&gt;&lt;P&gt;jar :&amp;nbsp;HiveJDBC42-2.6.11.1014&lt;/P&gt;&lt;P&gt;the kerberos needs a keytab file, i wonder if this can be set by 'org.apache.hadoop.security.UserGroupInformation' class&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thks.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 07:32:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-use-HS2Driver-driver-class-to-connect-cdh-hive-with/m-p/373566#M241633</guid>
      <dc:creator>sevens</dc:creator>
      <dc:date>2023-07-05T07:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to use 'HS2Driver' driver class to connect cdh hive with kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-use-HS2Driver-driver-class-to-connect-cdh-hive-with/m-p/373595#M241648</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105832"&gt;@sevens&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Hive experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70785"&gt;@Shmoo&lt;/a&gt;&amp;nbsp;&amp;nbsp;and&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12885"&gt;@mszurap&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 22:10:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-use-HS2Driver-driver-class-to-connect-cdh-hive-with/m-p/373595#M241648</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-07-05T22:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to use 'HS2Driver' driver class to connect cdh hive with kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-use-HS2Driver-driver-class-to-connect-cdh-hive-with/m-p/373599#M241651</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105832"&gt;@sevens&lt;/a&gt;&amp;nbsp;You might want to use latest version:&amp;nbsp;2.6.21 and also there is no hard limit to use UGI with Cloudera Driver as opposed to Apache Drivers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One option is to use JAAS file like below.&lt;/P&gt;&lt;P&gt;client.jaas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Client {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
keyTab="PathToTheKeyTab"
principal="cloudera@CLOUDERA"
doNotPrompt=true;
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;and set the&lt;STRONG&gt; java.security.auth.login.config&lt;/STRONG&gt; system property to the location of the JAAS file.&lt;/P&gt;&lt;P&gt;eg: java -Djava.security.auth.login.config=/opt/clientconf/client.jaas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doc ref:&amp;nbsp;&lt;A href="https://docs.cloudera.com/documentation/other/connectors/hive-jdbc/2-6-21/Cloudera-JDBC-Connector-for-Apache-Hive-Install-Guide.pdf" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/documentation/other/connectors/hive-jdbc/2-6-21/Cloudera-JDBC-Connector-for-Apache-Hive-Install-Guide.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 22:35:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-use-HS2Driver-driver-class-to-connect-cdh-hive-with/m-p/373599#M241651</guid>
      <dc:creator>cravani</dc:creator>
      <dc:date>2023-07-05T22:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to use 'HS2Driver' driver class to connect cdh hive with kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-use-HS2Driver-driver-class-to-connect-cdh-hive-with/m-p/373610#M241659</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thks!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 14:30:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-use-HS2Driver-driver-class-to-connect-cdh-hive-with/m-p/373610#M241659</guid>
      <dc:creator>sevens</dc:creator>
      <dc:date>2023-07-06T14:30:41Z</dc:date>
    </item>
  </channel>
</rss>

