<?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: Unable to start ambari-server - Problem with encrypt password in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172362#M54249</link>
    <description>&lt;P&gt;It is not installed by default with the JDK:&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/_distribute_and_install_the_jce.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/_distribute_and_install_the_jce.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To check if it is installed, you can execute the following command:&lt;/P&gt;&lt;PRE&gt;jrunscript -e ‘exit (javax.crypto.Cipher.getMaxAllowedKeyLength(“RC5”) 
&amp;gt;= 256);’; if [ $? -eq 1 ]; then echo “JCE Unlimited OK”; else echo 
“JCE NOT Unlimited”; fi&lt;/PRE&gt;&lt;P&gt;jrunscript is located in bin directory where your Java is installed.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2017 20:43:25 GMT</pubDate>
    <dc:creator>pvillard</dc:creator>
    <dc:date>2017-02-13T20:43:25Z</dc:date>
    <item>
      <title>Unable to start ambari-server - Problem with encrypt password</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172359#M54246</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Ambari-server can't start, i have this error :&lt;/P&gt;&lt;PRE&gt; cat /var/log/ambari-server/ambari-server.out
java.security.NoSuchAlgorithmException: PBKDF2WithHmacSHA1 SecretKeyFactory not available
       at javax.crypto.SecretKeyFactory.&amp;lt;init&amp;gt;(SecretKeyFactory.java:122)
       at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:160)
       at org.apache.ambari.server.security.encryption.AESEncryptor.getKeyFromPassword(AESEncryptor.java:104)
       at org.apache.ambari.server.security.encryption.AESEncryptor.getKeyFromPassword(AESEncryptor.java:97)
       at org.apache.ambari.server.security.encryption.AESEncryptor.&amp;lt;init&amp;gt;(AESEncryptor.java:51)
       at org.apache.ambari.server.security.encryption.MasterKeyServiceImpl.&amp;lt;clinit&amp;gt;(MasterKeyServiceImpl.java:44)
       at org.apache.ambari.server.security.encryption.CredentialProvider.&amp;lt;init&amp;gt;(CredentialProvider.java:57)
       at org.apache.ambari.server.configuration.Configuration.loadCredentialProvider(Configuration.java:858)
       at org.apache.ambari.server.configuration.Configuration.readPasswordFromStore(Configuration.java:1494)
       at org.apache.ambari.server.configuration.Configuration.getDatabasePassword(Configuration.java:1442)
       at org.apache.ambari.server.controller.ControllerModule.buildJpaPersistModule(ControllerModule.java:368)
       at org.apache.ambari.server.controller.ControllerModule.configure(ControllerModule.java:313)
       at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
       at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
       at com.google.inject.spi.Elements.getElements(Elements.java:101)
       at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
       at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
       at com.google.inject.Guice.createInjector(Guice.java:95)
       at com.google.inject.Guice.createInjector(Guice.java:72)
       at com.google.inject.Guice.createInjector(Guice.java:62)
       at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:803)
Exception in thread "main" java.lang.ExceptionInInitializerError
       at org.apache.ambari.server.security.encryption.CredentialProvider.&amp;lt;init&amp;gt;(CredentialProvider.java:57)
       at org.apache.ambari.server.configuration.Configuration.loadCredentialProvider(Configuration.java:858)
       at org.apache.ambari.server.configuration.Configuration.readPasswordFromStore(Configuration.java:1494)
       at org.apache.ambari.server.configuration.Configuration.getDatabasePassword(Configuration.java:1442)
       at org.apache.ambari.server.controller.ControllerModule.buildJpaPersistModule(ControllerModule.java:368)
       at org.apache.ambari.server.controller.ControllerModule.configure(ControllerModule.java:313)
       at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
       at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
       at com.google.inject.spi.Elements.getElements(Elements.java:101)
       at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
       at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
       at com.google.inject.Guice.createInjector(Guice.java:95)
       at com.google.inject.Guice.createInjector(Guice.java:72)
       at com.google.inject.Guice.createInjector(Guice.java:62)
       at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:803)
Caused by: java.lang.NullPointerException
       at org.apache.ambari.server.security.encryption.AESEncryptor.&amp;lt;init&amp;gt;(AESEncryptor.java:52)
       at org.apache.ambari.server.security.encryption.MasterKeyServiceImpl.&amp;lt;clinit&amp;gt;(MasterKeyServiceImpl.java:44)
       ... 15 more
&lt;/PRE&gt;&lt;P&gt;Ambari is unable to read encrypt passwords and i don't know why :&lt;/P&gt;&lt;PRE&gt; #  /usr/jdk64/java-1.8.0-openjdk-1.8.0.77-0.b03.el7_2.x86_64/bin/java -cp '/etc/ambari-server/conf:/usr/lib/ambari-server/*' org.apache.ambari.server.security.encryption.CredentialProvider GET ambari.db.password
java.security.NoSuchAlgorithmException: PBKDF2WithHmacSHA1 SecretKeyFactory not available
       at javax.crypto.SecretKeyFactory.&amp;lt;init&amp;gt;(SecretKeyFactory.java:122)
       at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:160)
       at org.apache.ambari.server.security.encryption.AESEncryptor.getKeyFromPassword(AESEncryptor.java:104)
       at org.apache.ambari.server.security.encryption.AESEncryptor.getKeyFromPassword(AESEncryptor.java:97)
       at org.apache.ambari.server.security.encryption.AESEncryptor.&amp;lt;init&amp;gt;(AESEncryptor.java:51)
       at org.apache.ambari.server.security.encryption.MasterKeyServiceImpl.&amp;lt;clinit&amp;gt;(MasterKeyServiceImpl.java:44)
       at org.apache.ambari.server.security.encryption.CredentialProvider.&amp;lt;init&amp;gt;(CredentialProvider.java:57)
       at org.apache.ambari.server.security.encryption.CredentialProvider.main(CredentialProvider.java:151)
Exception in thread "main" java.lang.ExceptionInInitializerError
       at org.apache.ambari.server.security.encryption.CredentialProvider.&amp;lt;init&amp;gt;(CredentialProvider.java:57)
       at org.apache.ambari.server.security.encryption.CredentialProvider.main(CredentialProvider.java:151)
Caused by: java.lang.NullPointerException
       at org.apache.ambari.server.security.encryption.AESEncryptor.&amp;lt;init&amp;gt;(AESEncryptor.java:52)
       at org.apache.ambari.server.security.encryption.MasterKeyServiceImpl.&amp;lt;clinit&amp;gt;(MasterKeyServiceImpl.java:44)
       ... 2 more
&lt;/PRE&gt;&lt;P&gt;any idea ?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 19:18:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172359#M54246</guid>
      <dc:creator>florentmair</dc:creator>
      <dc:date>2017-02-13T19:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start ambari-server - Problem with encrypt password</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172360#M54247</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/questions/83145/unable-sto-start-amabari-server-problem-with-encry.html#"&gt;@Florent M&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Is JCE installed? It looks like it is using an algorithm you don't have available on your server.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 19:21:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172360#M54247</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2017-02-13T19:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start ambari-server - Problem with encrypt password</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172361#M54248</link>
      <description>&lt;P&gt;hi Pierre Villard&lt;/P&gt;&lt;P&gt;i think i have jce installed, because it should be included with openjdk&lt;/P&gt;&lt;P&gt;i have this lib with the jdk :&lt;/P&gt;&lt;P&gt;/usr/jdk64/java-1.8.0-openjdk-1.8.0.77-0.b03.el7_2.x86_64/jre/lib/jce.jar&lt;/P&gt;&lt;P&gt;Everything works fine until i have rebooted the server &lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 20:40:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172361#M54248</guid>
      <dc:creator>florentmair</dc:creator>
      <dc:date>2017-02-13T20:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start ambari-server - Problem with encrypt password</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172362#M54249</link>
      <description>&lt;P&gt;It is not installed by default with the JDK:&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/_distribute_and_install_the_jce.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/_distribute_and_install_the_jce.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To check if it is installed, you can execute the following command:&lt;/P&gt;&lt;PRE&gt;jrunscript -e ‘exit (javax.crypto.Cipher.getMaxAllowedKeyLength(“RC5”) 
&amp;gt;= 256);’; if [ $? -eq 1 ]; then echo “JCE Unlimited OK”; else echo 
“JCE NOT Unlimited”; fi&lt;/PRE&gt;&lt;P&gt;jrunscript is located in bin directory where your Java is installed.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 20:43:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172362#M54249</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2017-02-13T20:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start ambari-server - Problem with encrypt password</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172363#M54250</link>
      <description>&lt;P&gt;it's look like good&lt;/P&gt;&lt;PRE&gt;/usr/jdk64/java-1.8.0-openjdk-1.8.0.77-0.b03.el7_2.x86_64/bin/jrunscript -e 'exit (javax.crypto.Cipher.getMaxAllowedKeyLength("RC5") &amp;gt;= 256);'; if [ $? -eq 1 ]; then echo "JCE Unlimited OK"; else echo "JCE NOT unlimited"; fi
JCE Unlimited OK&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Feb 2017 21:29:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172363#M54250</guid>
      <dc:creator>florentmair</dc:creator>
      <dc:date>2017-02-13T21:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start ambari-server - Problem with encrypt password</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172364#M54251</link>
      <description>&lt;P&gt;Found it ... some change i have made into java.security file ...&lt;/P&gt;&lt;P&gt;Thanks for your time&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 01:25:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172364#M54251</guid>
      <dc:creator>florentmair</dc:creator>
      <dc:date>2017-02-14T01:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start ambari-server - Problem with encrypt password</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172365#M54252</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16025/florentmair.html" nodeid="16025"&gt;@Florent M&lt;/A&gt; can you ellaborate on what the issue was, that this can be used as reference material.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 01:30:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-ambari-server-Problem-with-encrypt-password/m-p/172365#M54252</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-02-14T01:30:24Z</dc:date>
    </item>
  </channel>
</rss>

