When I am trying to register External MIT Kerberos I am getting following error.
Environment : Amberi 2.0 on CentOS 6.5
—————————————————————
Amberi Web UI gives the following error:
—————————————————————
Error
500 status code received on POST method for API: /api/v1/clusters/testcluster/requests
Error message: An internal system exception occurred: Host ambari1.example.com doesn’t exist in database
—————————————————————
/var/log/ambari-server/ambari-server.log
—————————————————————
10 Apr 2015 11:55:10,184 INFO [qtp-client-23] AmbariManagementControllerImpl:2911 – Received action execution request, clusterName=testcluster, request=isCommand :true, action :null, command :KERBEROS_SERVICE_CHECK, inputs :{}, resourceFilters: [RequestResourceFilter{serviceName=’KERBEROS’, componentName=’null’, hostNames=[]}], exclusive: false, clusterName :testcluster
10 Apr 2015 11:55:12,290 ERROR [qtp-client-23] ActionDBAccessorImpl:268 – Host ambari1.example.com doesn’t exist in database
10 Apr 2015 11:55:12,293 ERROR [qtp-client-23] AbstractResourceProvider:280 – Caught AmbariException when creating a resource
org.apache.ambari.server.AmbariException: Host ambari1.example.com doesn’t exist in database
at org.apache.ambari.server.actionmanager.ActionDBAccessorImpl.persistActions(ActionDBAccessorImpl.java:269)
at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:68)
at org.apache.ambari.server.actionmanager.ActionManager.sendActions(ActionManager.java:96)