<?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 Zookeeper problem after hadoop kerberization in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/209340#M69213</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;after hadoop kerberization we are facing an issue about some services, these services don't start. These services are yarn resource manager, hbase regionservers, ambari-infra, logsearch. Problem seems same, they are all "No auth" error for related directories. Ambari-infra error;&lt;/P&gt;
&lt;PRE&gt;KeeperErrorCode = NoAuth for /infra-solr
org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /infra-solr
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:113)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.setACL(ZooKeeper.java:1399)
	at org.apache.ambari.logsearch.solr.util.AclUtils.setRecursivelyOn(AclUtils.java:77)
	at org.apache.ambari.logsearch.solr.commands.SecureSolrZNodeZkCommand.executeZkCommand(SecureSolrZNodeZkCommand.java:63)
	at org.apache.ambari.logsearch.solr.commands.SecureSolrZNodeZkCommand.executeZkCommand(SecureSolrZNodeZkCommand.java:39)
	at org.apache.ambari.logsearch.solr.commands.AbstractZookeeperRetryCommand.createAndProcessRequest(AbstractZookeeperRetryCommand.java:38)
	at org.apache.ambari.logsearch.solr.commands.AbstractRetryCommand.retry(AbstractRetryCommand.java:45)
	at org.apache.ambari.logsearch.solr.commands.AbstractRetryCommand.run(AbstractRetryCommand.java:40)
	at org.apache.ambari.logsearch.solr.AmbariSolrCloudClient.secureSolrZnode(AmbariSolrCloudClient.java:170)
	at org.apache.ambari.logsearch.solr.AmbariSolrCloudCLI.main(AmbariSolrCloudCLI.java:526)&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Mar 2020 09:51:08 GMT</pubDate>
    <dc:creator>mustafakemal_ma</dc:creator>
    <dc:date>2020-03-26T09:51:08Z</dc:date>
    <item>
      <title>Zookeeper problem after hadoop kerberization</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/209340#M69213</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;after hadoop kerberization we are facing an issue about some services, these services don't start. These services are yarn resource manager, hbase regionservers, ambari-infra, logsearch. Problem seems same, they are all "No auth" error for related directories. Ambari-infra error;&lt;/P&gt;
&lt;PRE&gt;KeeperErrorCode = NoAuth for /infra-solr
org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /infra-solr
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:113)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.setACL(ZooKeeper.java:1399)
	at org.apache.ambari.logsearch.solr.util.AclUtils.setRecursivelyOn(AclUtils.java:77)
	at org.apache.ambari.logsearch.solr.commands.SecureSolrZNodeZkCommand.executeZkCommand(SecureSolrZNodeZkCommand.java:63)
	at org.apache.ambari.logsearch.solr.commands.SecureSolrZNodeZkCommand.executeZkCommand(SecureSolrZNodeZkCommand.java:39)
	at org.apache.ambari.logsearch.solr.commands.AbstractZookeeperRetryCommand.createAndProcessRequest(AbstractZookeeperRetryCommand.java:38)
	at org.apache.ambari.logsearch.solr.commands.AbstractRetryCommand.retry(AbstractRetryCommand.java:45)
	at org.apache.ambari.logsearch.solr.commands.AbstractRetryCommand.run(AbstractRetryCommand.java:40)
	at org.apache.ambari.logsearch.solr.AmbariSolrCloudClient.secureSolrZnode(AmbariSolrCloudClient.java:170)
	at org.apache.ambari.logsearch.solr.AmbariSolrCloudCLI.main(AmbariSolrCloudCLI.java:526)&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Mar 2020 09:51:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/209340#M69213</guid>
      <dc:creator>mustafakemal_ma</dc:creator>
      <dc:date>2020-03-26T09:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper problem after hadoop kerberization</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/209341#M69214</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10532/mustafakemalmayuk.html" nodeid="10532"&gt;@Mustafa Kemal MAYUK&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;from the error, it apparently user have not authenticated with proper keytab.&lt;/P&gt;&lt;P&gt;these are the possible root causes / solution for the problem.&lt;/P&gt;&lt;P&gt;1. check you have all the service keytabs are placed in "&lt;I&gt;/etc/security/keytabs" for each host.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;2. verify the service user for the service have at least read access for the keytab.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;3. most common issue is with naming &lt;/I&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;I&gt;service keytab name &amp;amp; service principle name which mentioned in service configuration is not matched with keytab file .&lt;/I&gt;&lt;/P&gt;&lt;P&gt;apart from this please ensure to check you are able to get the ticket using the keytabs. &lt;/P&gt;&lt;P&gt;Hope this helps!!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 13:58:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/209341#M69214</guid>
      <dc:creator>bkosaraju</dc:creator>
      <dc:date>2017-10-09T13:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper problem after hadoop kerberization</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/209342#M69215</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/10532/mustafakemalmayuk.html"&gt;@Mustafa Kemal MAYUK&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;There are a couple of things that could be wrong,first step &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-re-run the Ambari UI kerberos wizard and ensure it regenerates the principals/keytabs without any error On the node where the services are running check that the keytabs were gerenerate in  &lt;STRONG&gt;/etc/security/keytabs/*&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;On the KDC server validate that the principals were created &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# kadmin.loca l 
kadmin.local listprincs&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;All the principals in question should be in the KDC database &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Check that the keytabs are mapped to the correct principal. &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# klist -kt /etc/security/keytabs/yarn.service.keytab 
Keytab name: FILE:/etc/security/keytabs/yarn.service.keytab 
KVNO 		Timestamp 	Principal
 ---- ------------------- ------------------------------------------------------ 
1 08/24/2017 15:42:24 yarn/{host_FQDN}@REALM 
1 08/24/2017 15:42:24 yarn/{host_FQDN}@REALM 
1 08/24/2017 15:42:24 yarn/{host_FQDN}@REALM 
1 08/24/2017 15:42:24 yarn/{host_FQDN}@REALM 
1 08/24/2017 15:42:24 yarn/{host_FQDN}@REALM &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Using the correct principal grab a kerberos ticket &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# kinit -kt /etc/security/keytabs/yarn.service.keytab yarn/{host_FQDN}@REALM &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Check that a valid ticket was issued &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# klist 
Ticket cache: FILE:/tmp/krb5cc_0 
Default principal: yarn/{host_FQDN}@REALM 
Valid  starting      Expires            Service principal 
10/09/2017 11:13:07 10/10/2017 11:13:07 krbtgt/REALM@REALM &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;In ambari start that particular service in the above case YARN Please revert&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 16:21:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/209342#M69215</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-10-09T16:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper problem after hadoop kerberization</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/209343#M69216</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I tried a few things. Regenerated keytabs, checked ticket issues, check read accesses of keytabs...There were no problems. I also tried to delete problematic service, remove zookeeper folder(I faced with 'no authentication' error and i could removed with using super digest as explained here; &lt;A href="https://community.hortonworks.com/articles/29900/zookeeper-using-superdigest-to-gain-full-access-to.html)" target="_blank"&gt;https://community.hortonworks.com/articles/29900/zookeeper-using-superdigest-to-gain-full-access-to.html)&lt;/A&gt; and added again but the problem had continued.&lt;/P&gt;&lt;P&gt;I resolved issue with adding security.auth_to_local rules to zokeeper environment. I added rules for problematic services to SERVER_JVMFLAGS in zookeeper-env template like this and restart zookeeper and other related services.&lt;/P&gt;&lt;PRE&gt;-Dzookeeper.security.auth_to_local=RULE:[2:\$1@\$0](hbase@MY_REALM)s/.*/hbase/RULE:[2:\$1@\$0](infra-solr@MY_REALM)s/.*/infra-solr/RULE:[2:\$1@\$0](rm@MY_REALM)s/.*/rm/ &lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:31:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/209343#M69216</guid>
      <dc:creator>mustafakemal_ma</dc:creator>
      <dc:date>2017-10-11T12:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper problem after hadoop kerberization</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/292621#M69217</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/48754"&gt;@mustafakemal_ma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried above solution, it did not work.&lt;/P&gt;&lt;P&gt;Any idea about the issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 09:08:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/292621#M69217</guid>
      <dc:creator>ManjunathK</dc:creator>
      <dc:date>2020-03-26T09:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper problem after hadoop kerberization</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/306683#M69218</link>
      <description>&lt;P&gt;The following map rule is wrong:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;RULE:[2:\$1@\$0](rm@MY_REALM)s/.*/rm/ &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the user for the ResourceManager is not "rm" but "yarn" and this should be the replacement value. This is the same as for the &lt;SPAN class="form-group control-label-span col-md-3"&gt;&lt;SPAN class="ember-view"&gt;hadoop.security.auth_to_local&lt;/SPAN&gt;&lt;/SPAN&gt; in Hadoop/HDFS configuration.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 20:55:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-problem-after-hadoop-kerberization/m-p/306683#M69218</guid>
      <dc:creator>lvazquez</dc:creator>
      <dc:date>2020-12-01T20:55:23Z</dc:date>
    </item>
  </channel>
</rss>

