Support Questions

Find answers, ask questions, and share your expertise

ERROR [main] AmbariServer:1017 - Failed to run the Ambari Server java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity

Explorer

Hello Experts.

We have HDP 2.5.0 cluster and recently migrated JDK from Oracle to OpenJDK.  Now after rebooting servers, Ambari does not start.

The error in log file is:

"02 Dec 2021 20:16:04,161 INFO [main] CertificateManager:76 - Certificate exists:true
02 Dec 2021 20:16:04,161 INFO [main] KerberosChecker:128 - Skipping Ambari Server Kerberos credentials check.
02 Dec 2021 20:16:04,164 ERROR [main] AmbariServer:1017 - Failed to run the Ambari Server
java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity
at javax.crypto.SecretKeyFactory.nextSpi(SecretKeyFactory.java:295)
at javax.crypto.SecretKeyFactory.<init>(SecretKeyFactory.java:121)
at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:160)"

 

We guess we missed to run "ambari-server setup" to reconfigure the new JDK.

As we didn't it before and want to know if there is any risk of loosing data after the setup.

Some tip or advise?

Regards

2 REPLIES 2

Cloudera Employee

Community Manager

@gnavarro54 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. Thank you.


Regards,

Diana Torres,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.