<?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: Can't start Activity Monitor and Zookeeper after enabling Kerberos - error &amp;quot;no password pro in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-start-Activity-Monitor-and-Zookeeper-after-enabling/m-p/76917#M80616</link>
    <description>&lt;P&gt;Thanks, &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/17034"&gt;@dougspadottoemc&lt;/a&gt;!&amp;nbsp; I am just glad you tracked down the problem and can go back to having fun with hadoop &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jul 2018 16:29:09 GMT</pubDate>
    <dc:creator>bgooley</dc:creator>
    <dc:date>2018-07-13T16:29:09Z</dc:date>
    <item>
      <title>Can't start Activity Monitor and Zookeeper after enabling Kerberos - error "no password provided"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-start-Activity-Monitor-and-Zookeeper-after-enabling/m-p/71745#M80613</link>
      <description>&lt;P&gt;I've enabled Kerberos using AD as KDC, and I can kinit with both the zookeeper and cm keytabs mentioned on the errors below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some things I tried/noticed:&lt;/P&gt;&lt;P&gt;- regenerated the keytabs, including removing the principals from AD.&lt;/P&gt;&lt;P&gt;- guaranteed the permissions on the keytab files are correct: cloudera-scm:cloudera-scm for cm.keytab and zookeeper:zookeeper on zookeeper.keytab&lt;/P&gt;&lt;P&gt;- the jaas.conf file has the keytab entry with the filename without the full path, but I think this is not an issue as the directory is auto-generated at each start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Successful kinit with zookeeper.keytab:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kinit_zk.PNG" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/4396i080C780AE6D6DE7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="kinit_zk.PNG" alt="kinit_zk.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error on Zookeeper:&lt;/P&gt;&lt;PRE&gt;Unexpected exception, exiting abnormally
java.io.IOException: Could not configure server because SASL configuration did not allow the  ZooKeeper server to authenticate itself properly: javax.security.auth.login.LoginException: No password provided
	at org.apache.zookeeper.server.ServerCnxnFactory.configureSaslLogin(ServerCnxnFactory.java:207)
	at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:87)
	at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:135)
	at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116)
	at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:79)&lt;/PRE&gt;&lt;P&gt;Successful kinit with cmon.keytab:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kinit_cm.PNG" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/4395i3ECB2ABAC194707F/image-size/large?v=v2&amp;amp;px=999" role="button" title="kinit_cm.PNG" alt="kinit_cm.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error on starting Activity Monitor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Failed to start Firehose
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.io.IOException: Login failure for hue/cldra-pr-edge2.xxx@XXX from keytab cmon.keytab
	at com.google.common.base.Throwables.propagate(Throwables.java:160)
	at com.cloudera.cmf.cdhclient.CdhExecutorFactory.createExecutor(CdhExecutorFactory.java:293)
	at com.cloudera.cmf.cdhclient.CdhExecutorFactory.createExecutor(CdhExecutorFactory.java:349)
	at com.cloudera.enterprise.AbstractCDHVersionAwarePeriodicService.&amp;lt;init&amp;gt;(AbstractCDHVersionAwarePeriodicService.java:73)
	at com.cloudera.cmon.firehose.JobTrackerPoller.&amp;lt;init&amp;gt;(JobTrackerPoller.java:192)
	at com.cloudera.cmon.firehose.TreeJobTrackerPoller.&amp;lt;init&amp;gt;(TreeJobTrackerPoller.java:45)
	at com.cloudera.cmon.firehose.FirehosePipeline.createSecurityAwarePollers(FirehosePipeline.java:332)
	at com.cloudera.cmon.firehose.FirehosePipeline.&amp;lt;init&amp;gt;(FirehosePipeline.java:214)
	at com.cloudera.cmon.firehose.FirehosePipeline.&amp;lt;init&amp;gt;(FirehosePipeline.java:384)
	at com.cloudera.cmon.firehose.Firehose.&amp;lt;init&amp;gt;(Firehose.java:262)
	at com.cloudera.cmon.firehose.Main.main(Main.java:541)
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.io.IOException: Login failure for hue/cldra-pr-edge2.xxx@XXX from keytab cmon.keytab
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at com.cloudera.cmf.cdhclient.CdhExecutorFactory.createExecutor(CdhExecutorFactory.java:287)
	... 9 more
Caused by: java.lang.RuntimeException: java.io.IOException: Login failure for hue/cldra-pr-edge2xxx@XXXX from keytab cmon.keytab
	at com.google.common.base.Throwables.propagate(Throwables.java:160)
	at com.cloudera.cmf.cdhclient.CdhExecutorFactory$SecureClassLoaderSetupTask.run(CdhExecutorFactory.java:584)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Login failure for hue/cldra-pr-edge2.xxx@XXX from keytab cmon.keytab
	at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:855)
	at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:279)
	at com.cloudera.cmf.cdh4client.CDH4ObjectFactoryImpl.login(CDH4ObjectFactoryImpl.java:190)
	at com.cloudera.cmf.cdhclient.CdhExecutorFactory$SecureClassLoaderSetupTask.run(CdhExecutorFactory.java:578)
	... 5 more
Caused by: javax.security.auth.login.LoginException: Unable to obtain password from user

	at com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:897)
	at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:760)
	at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:617)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
	at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
	at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
	at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:846)
	... 8 more&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:27:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-start-Activity-Monitor-and-Zookeeper-after-enabling/m-p/71745#M80613</guid>
      <dc:creator>dougspadottoemc</dc:creator>
      <dc:date>2022-09-16T13:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start Activity Monitor and Zookeeper after enabling Kerberos - error "no password pro</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-start-Activity-Monitor-and-Zookeeper-after-enabling/m-p/71776#M80614</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/17034"&gt;@dougspadottoemc&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for supplying all that information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple possible causes I can think of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are using AES256 encryption for kerberos but the JDK you are using is not configured to support AES256.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- See if you have encryption types configured in your /etc/krb5.conf&lt;/P&gt;&lt;P&gt;- use "klist -kte zookeeper.keytab" to view the encryption types listed in the keytab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To check this, try this in Cloudera Manager:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Navigate to &lt;STRONG&gt;Administration --&amp;gt; Security&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Click &lt;STRONG&gt;Security Inspector &lt;/STRONG&gt;button&lt;/P&gt;&lt;P&gt;- When the check completes, check the results and make sure you see:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;All hosts have Java configured with unlimited-strength encryption&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you do not see that and you have limited encryption, that can explain why "kinit" works but Java cann't read the keytab properly.&amp;nbsp; MIT does not have AES256 restrictions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you redacted your domain and realm information, I can't tell for sure, but I do recall this type of issue happening in the past when Cloudera Manager had a different REALM configured than the one in the keytabs.&amp;nbsp; I don't think this is it for you, but thought I'd mention it just in case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 19:47:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-start-Activity-Monitor-and-Zookeeper-after-enabling/m-p/71776#M80614</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2018-07-12T19:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start Activity Monitor and Zookeeper after enabling Kerberos - error "no password pro</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-start-Activity-Monitor-and-Zookeeper-after-enabling/m-p/75428#M80615</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/4054"&gt;@bgooley&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The inspector showed&amp;nbsp;the unlimited-strength check&amp;nbsp;as ok, but I was suspicious of the same thing and asked the admin to make sure the Unlimited JCE policy jar files were copied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After he copied them, Zookeeper was started successfuly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll mark your answer as the solution, even though I arrived at the same conclusion just hours before your reply! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 13:09:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-start-Activity-Monitor-and-Zookeeper-after-enabling/m-p/75428#M80615</guid>
      <dc:creator>dougspadottoemc</dc:creator>
      <dc:date>2018-07-13T13:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start Activity Monitor and Zookeeper after enabling Kerberos - error "no password pro</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-start-Activity-Monitor-and-Zookeeper-after-enabling/m-p/76917#M80616</link>
      <description>&lt;P&gt;Thanks, &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/17034"&gt;@dougspadottoemc&lt;/a&gt;!&amp;nbsp; I am just glad you tracked down the problem and can go back to having fun with hadoop &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 16:29:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-start-Activity-Monitor-and-Zookeeper-after-enabling/m-p/76917#M80616</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2018-07-13T16:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start Activity Monitor and Zookeeper after enabling Kerberos - error "no password pro</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-start-Activity-Monitor-and-Zookeeper-after-enabling/m-p/78625#M80617</link>
      <description>&lt;P&gt;This definitely was the issue and the fix for me. I saw both jar files already in the java/lib/security dir and failed to replace them with the downloaded&amp;nbsp;UnlimitedJCEPolicyJDK8 jar files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It took me a long time to get back to replacing the files. After doing so, I restarted CMS successfuly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the post!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 23:26:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-start-Activity-Monitor-and-Zookeeper-after-enabling/m-p/78625#M80617</guid>
      <dc:creator>jhernandez</dc:creator>
      <dc:date>2018-08-16T23:26:59Z</dc:date>
    </item>
  </channel>
</rss>

