Skip to main content
Mugarte10
Silver ⭐️⭐️
Aug 28, 2024 3:14 AM UTC
Question

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/clu

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

VidyaSargur
Community Manager
Community Manager
Aug 28, 2024 4:57 AM UTC

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.

Translate
Regards, Vidya Sargur Madabhushi| Senior Community Manager | Was your question answered? Make sure to mark the answer as the Best Answer. If you find a reply useful, say thanks by clicking on the thumbs up button.
Scharan
Gold ⭐️
Gold ⭐️
Aug 28, 2024 2:49 PM UTC

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

 

Translate
Mugarte10
Mugarte10Author
Silver ⭐️⭐️
Aug 28, 2024 6:30 PM UTC

@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.

Translate
Scharan
Gold ⭐️
Gold ⭐️
Aug 30, 2024 12:29 PM UTC

@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.

Translate
Mugarte10
Mugarte10Author
Silver ⭐️⭐️
Aug 30, 2024 4:02 PM UTC

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?

Translate