You can configure the cleanup command that is defined by the component manager in the
service profile to help the component manager to uninstall the service.
Before you begin
You must be a cluster administrator or have the Services Manage permission.
About this task
Follow these steps to configure the cleanup command in
the service profile.
Procedure
-
Open the Service Profile page.
-
In the Actions menu of sc:ActivitySpecification
under sc:ActivityDescription, select any of the following parameters:
-
Insert "ego:CleanupCommand"
-
Insert "ego:InactivityPeriod"
-
Insert "ego:CleanupFinishWaitPeriod"
Note: If the CleanupCommand parameter is configured, the
InactivityPeriod parameter must also be configured.
-
Enter valid values. For example:
- For the CleanupCommand parameter enter /opt/biginsights/spark/uninstall.sh
- For the InactivityPeriod parameter enter PT60S
- For the CleanupFinishWaitPeriod parameter
enter PT180S
-
Click Save.
Results
The cleanup command will be executed on the host and its
output file will show the start time for the cleanup command.