Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Unable to run the ambari_server_stale_alerts alert: java.lang.NullPointerException

avatar
Explorer

Hi,

I am using hdp 2.4 with ambari 2.2. I am continuously seeing the following message in ambari server logs.

Unable to run the ambari_server_stale_alerts alert: java.lang.NullPointerException

WARN [qtp-ambari-client-62] servletHandler:563 - /api/v1/clusters/<ournameofCluster>/alerts

The curl command to ambari alerts received status 500 server error.

curl -u <user>:<password> -X GET http://<host>:8080/api/v1/clusters/<nameofourcluster>/alerts

the same curl command is working for alert_definitions.

Please help me on this asap.

Thanks

1 ACCEPTED SOLUTION

avatar
Master Mentor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
3 REPLIES 3

avatar
Master Mentor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Explorer

@Jay

Thanks for your immediate reply. The above commands resolved the issue.

avatar
Super Collaborator

Those tables have referential integrity and should not be able to get out-of-sync. Are you using MySQL as your Ambari database? If so, is your default engine InnoDB or MyISAM? If it's MyISAM, that's very bad as it doesn't support transactions or foreign keys. You would need perform several steps to convert your database into InnoDB or this could happen again in the future.