Enabling and Disabling a Service Using the CLI and REST API
Describes how to enable or disable a service using either the REST API or the CLI.
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 or REST API
maprcli node services -nodes <hostName> -name <serviceName> -action disable
curl -k -X POST 'https://<host>:8443/rest/node/services?nodes=<hostName>&name=<serviceName>
&action=disable' --user mapr:mapr
node services
for
more information.Enabling a Service Using the CLI or REST API
maprcli node services -nodes <hostName> -name <serviceName> -action enable
curl -k -X POST 'https://<host>:8443/rest/node/services?nodes=<hostName>&name=<serviceName>
&action=enable' --user mapr:mapr
node services
for more
information.