Ambari: Manually disable kerberos authentication for Ambari UI
After trying to disable kerberos via the UI the following message is seen in the ambari-server logs and the service fails to start.
...INFO [main] KerberosChecker:57 - Checking Ambari Server Kerberos credentials.
WARN [main] KerberosChecker:81 - /etc/security/keytabs/ambari.server.keytab doesn't exist
ERROR [main] KerberosChecker:115 - Configuration Error - either doNotPrompt should be false or at least one of useTicketCache, useKeyTab, tryFirstPass and useFirstPass should be true
Edit: /etc/ambari-server/conf/ambari.properties
Ensure the following is set: kerberos.check.jaas.configuration=false Further disable kerberos for ambari server by removing:
"-Djava.security.auth.login.config=/etc/ambari-server/conf/krb5JAASLogin.conf
-Djava.security.krb5.conf=/etc/krb5.conf
-Djavax.security.auth.useSubjectCredsOnly=false"
from AMBARI_JVM_ARGS value in /var/lib/ambari-server/ambari-env.sh
If you decide to enable kerberos again, you have to manually revert changes in /var/lib/ambari-server/ambari-env.sh

