Enabling and Disabling a Service Using the CLI and REST API

You can disable a service to prevent it from starting or restarting when Warden starts or restarts and enable a service to allow it to start or restart when Warden starts or restarts.

Disabling a Service Using the CLI and REST API

Run the following command:
maprcli node services -nodes <hostName> -name <serviceName> -action disable
Send a request of type POST. For example:
curl -k -X POST 'https://<host>:8443/rest/node/services?nodes=<hostName>&name=<serviceName>&action=disable' --user mapr:mapr
Note: When you disable a service, the service is stopped and the service will not be automatically starrted/restarted when Warden is started/restarted.
See node services for more information.

Enabling a Service Using the CLI and REST API

Run the following command:
maprcli node services -nodes <hostName> -name <serviceName> -action enable
Send a request of type POST. For example:
curl -k -X POST 'https://<host>:8443/rest/node/services?nodes=<hostName>&name=<serviceName>&action=enable' --user mapr:mapr
Note: When you enable a service, the service is started/restarted when Warden is started/restarted.
See node services for more information.