<?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: Cloudera after setting up custom kerberos for hive: Unable to read HiveServer2 configs from ZooKeeper (state=,code=0) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-after-setting-up-custom-kerberos-for-hive-Unable-to/m-p/388727#M246753</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110882"&gt;@sibin&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2024 22:49:11 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2024-06-03T22:49:11Z</dc:date>
    <item>
      <title>Cloudera after setting up custom kerberos for hive: Unable to read HiveServer2 configs from ZooKeeper (state=,code=0)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-after-setting-up-custom-kerberos-for-hive-Unable-to/m-p/388536#M246701</link>
      <description>&lt;P&gt;After setting custom kerberos princ for hive: Unable to read HiveServer2 configs from ZooKeeper (state=,code=0). But if i use default kerb principal i am able to logon to hive.&lt;BR /&gt;&lt;BR /&gt;followed this doc&lt;BR /&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.9/security-kerberos-authentication/topics/hive-custom-kerberos-principal.html" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.9/security-kerberos-authentication/topics/hive-custom-kerberos-principal.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Connecting to jdbc:hive2://im19-vm4.eng.cohesity.com:2181,im19-vm5.eng.cohesity.com:2181,im19-vm6.eng.cohesity.com:2181/default;password=root;principal=khive/_HOST@im19-vm4.realm;serviceDiscoveryMode=zooKeeper;ssl=true;sslTrustStore=/var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_truststore.jks;trustStorePassword=9xSdfOCgyzHPGv24yUYU9QOob4sKxiey5GsTnZgK7oB;trustStoreType=jks;user=root;zooKeeperNamespace=hiveserver2
Error: org.apache.hive.jdbc.ZooKeeperHiveClientException: Unable to read HiveServer2 configs from ZooKeeper (state=,code=0)
Beeline version 3.1.3000.7.1.9.0-387 by Apache Hive
beeline&amp;gt;

=====================================================================================
zookeeper checks
[zk: localhost:2181(CONNECTED) 2] ls /
[confstore, hbase, hiveserver2, rmstore, zookeeper]
[zk: localhost:2181(CONNECTED) 3] ls /hiveserver2
[]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 07:16:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cloudera-after-setting-up-custom-kerberos-for-hive-Unable-to/m-p/388536#M246701</guid>
      <dc:creator>sibin</dc:creator>
      <dc:date>2024-05-30T07:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cloudera after setting up custom kerberos for hive: Unable to read HiveServer2 configs from ZooKeeper (state=,code=0)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-after-setting-up-custom-kerberos-for-hive-Unable-to/m-p/388555#M246703</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110882"&gt;@sibin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ensure that the /hiveserver2 znode exists and contains the necessary configurations. The fact that ls /hiveserver2 returns an empty list suggests that HiveServer2 has not correctly registered its configurations in ZooKeeper.&lt;/P&gt;&lt;P&gt;Look into the HiveServer2 logs for any errors or warnings related to ZooKeeper or Kerberos&lt;/P&gt;&lt;P&gt;Create Kerberos Principal&lt;BR /&gt;kadmin.local -q "addprinc -randkey khive/im19-vm4@IM19-V4.REALM"&lt;BR /&gt;Generate Keytab File&lt;BR /&gt;kadmin.local -q "xst -k /etc/security/keytabs/khive.keytab khive/im19-vm4@IM19-V4.REALM"&lt;BR /&gt;Verify Keytab File&lt;BR /&gt;klist -k /etc/security/keytabs/khive.keytab&lt;BR /&gt;Set Permissions&lt;BR /&gt;chown hive:hive /etc/security/keytabs/khive.keytab&lt;BR /&gt;chmod 400 /etc/security/keytabs/khive.keytab&lt;BR /&gt;Update hive-site.xml&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;hive.server2.authentication.kerberos.principal&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;khive/im19-vm4@IM19-V4.REALM&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;hive.server2.authentication.kerberos.keytab&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;/etc/security/keytabs/khive.keytab&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Restart hiveserver2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 09:30:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cloudera-after-setting-up-custom-kerberos-for-hive-Unable-to/m-p/388555#M246703</guid>
      <dc:creator>RAGHUY</dc:creator>
      <dc:date>2024-05-30T09:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cloudera after setting up custom kerberos for hive: Unable to read HiveServer2 configs from ZooKeeper (state=,code=0)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-after-setting-up-custom-kerberos-for-hive-Unable-to/m-p/388727#M246753</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110882"&gt;@sibin&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 22:49:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cloudera-after-setting-up-custom-kerberos-for-hive-Unable-to/m-p/388727#M246753</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-06-03T22:49:11Z</dc:date>
    </item>
  </channel>
</rss>

