Skip to main content
mike_bronson7
Gold ⭐️⭐️⭐️
July 25, 2019
Solved

is it necessary to restart the ambari server after we delete service

hi all


is it necessary to restart the ambari server after we delete ambari service by REST API ?


I as asking because after we delete some service from the ambari by API

we saw that service really Disappeared from ambari dartboard

so I not sure if we need also to restart the ambari server to take affect?


jsensharma
Platinum ⭐️⭐️
July 26, 2019

@Michael Bronson

After deleting a service from Ambari UI Or using Ambari API calls ... you do not need to restart Ambari Server.

Additionally, When you delete the service using Ambari UI then it internally makes the same API calls.

4 replies

david_sanchez_p
Gold ⭐️
July 26, 2019

Hello!


DISCLAIMER: I don't have this knowledge, but want to add my two cents


First, I don't think is really necessary. When you delete a service via UI, it automatically refresh and the service dissapears, therefore, by using the REST API, should trigger the same mechanism (if not, I feel is bad design).


Second: Ambari Server is independent from HDP. What I mean is: Ambari is used for monitoring/installing/configuring/etc, but it doesnt affect on your cluster. You can power off you Ambari, and your cluster is going to work without problems, therefore, I think restarting or not, is transparent (besides triggering alarms and loading (a tiny bit the system on restart)).

My question here is why do you need to use the REST api to delete a service. I mean, a service is normally a "once in a lifetime, besides updates". Why not use GUI, and simplify your life?

Translate
mike_bronson7
Gold ⭐️⭐️⭐️
July 28, 2019

@David Sanchez we are using script in order to add service or to delete the service , we not do it from amabri UI because we do all services management by automatic script that do it

Translate
Michael-Bronson
jsensharma
Platinum ⭐️⭐️
Platinum ⭐️⭐️
July 26, 2019

@Michael Bronson

After deleting a service from Ambari UI Or using Ambari API calls ... you do not need to restart Ambari Server.

Additionally, When you delete the service using Ambari UI then it internally makes the same API calls.

Translate
mike_bronson7
Gold ⭐️⭐️⭐️
July 28, 2019

@Jay as you know we are using script that use API to delete the service , so if no need to restart the ambari server , so I am understand that only deletion by API is that all needed and no need other additional steps - correct me i am I wrong

Translate
Michael-Bronson