Support Questions

Find answers, ask questions, and share your expertise

500 status code received on GET method for API: /api/v1/clusters/datalakev02/requests?to=end&page_size=10&fields=Requests/end_time,Requests/id,Requests/progress_percent,Requests/request_context,Requests/request_status,Requests/start_time,Requests/cluster_name,Requests/user_name&minimal_response

avatar
New Contributor

Whenever I enter Ambari I get the next error in a box with a green "okay" button.

500 status code received on GET method for API: /api/v1/clusters/datalakev02/requests?to=end&page_size=10&fields=Requests/end_time,Requests/id,Requests/progress_percent,Requests/request_context,Requests/request_status,Requests/start_time,Requests/cluster_name,Requests/user_name&minimal_response

Then if I want to go to any configs of the services or restart something, I get a similar but shorter message:

500 status code received on GET method for API: /api/v1/clusters/datalakev02/kerberos_descriptors/COMPOSITE?evaluate_when=true

I checked the ambari-server logs and I have only this message:

 

2024-08-28 03:05:10,868 WARN [ambari-hearbeat-monitor] HeartbeatMonitor:133 - Exception received
java.lang.RuntimeException: Failed to construct cluster topology while replaying request: org.apache.ambari.server.topology.InvalidTopologyException: NAMENODE HA requires at least 2 hosts running NAMENODE but there are: 1 Hosts: [master03]

 

Is there any solution to this problem? I am running ambari 2.7.4 in a CentOS 7 VM

5 REPLIES 5

avatar
Community Manager

Hi @Mugarte10, Welcome to our community! To help you get the best possible answer, I have tagged in our Ambari experts @Scharan  who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.



Regards,

Vidya Sargur,
Community Manager


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:

avatar
Master Collaborator

@Mugarte10Can you confirm if you have made any changes, like decommissioning a node or upgrading the cluster?

 

avatar
New Contributor

@Scharan Both namenodes were down and because of an error with the VMs we had to recover the nodes but not the information, so in order to recover the namenode I tried decommissioning the node and then add it again as a namenode.

avatar
Master Collaborator

@Mugarte10Seems to be an issue with Ambari DB, If you have the Ambari database back up, can you try restoring the Ambari database, Also take the backup of ambari DB of the current state.

avatar
New Contributor

Hi @Scharan, I have not backed up the ambari DB, does it back up automatically? And if it does where can I find that back up?