Apache Ambari Operations
Also available as:
PDF
loading table of contents...

Enable Service Auto-Start

As a Cluster Administrator or Cluster Operator, you can enable each service in your stack to re-start automatically. Enabling auto-start for a service causes the ambari-agent to attempt re-starting service components in a stopped state without manual effort by a user. Auto-Start Services is enabled by default, but only the Ambari Metrics Collector component is set to auto-start by default.

As a first step, you should enable auto-start for the worker nodes in the core Hadoop services, the DataNode and NameNode components in YARN and HDFS, for example. You should also enable auto-start for all components in the SmartSense service. After enabling auto-start, monitor the operating status of your services on the Ambari Web dashboard. Auto-start attempts do not display as background operations. To diagnose issues with service components that fail to start, check the ambari agent logs, located at: /var/log/ambari-agent.log on the component host.

To manage the auto-start status for components in a service:

Steps

  1. In Auto-Start Services, click a service name.

  2. Click the grey area in the Auto-Start Services control of at least one component, to change its status to Enabled.

    The green icon to the right of the service name indicates the percentage of components with auto-start enabled for the service.

  3. To enable auto-start for all components in the service, click Enable All.

    The green icon fills to indicate all components have auto-start enabled for the service.

  4. To disable auto-start for all components in the service, click Disable All.

    The green icon clears to indicate that all components have auto-start disabled for the service.

  5. To clear all pending status changes before saving them, click Discard.

  6. When you finish changing your auto-start status settings, click Save.

- -

To disable Auto-Start Services:

Steps

  1. In Ambari Web, click Admin > Service Auto-Start.

  2. In Service Auto Start Configuration, click the grey area in the Auto-Start Services control to change its status from Enabled to Disabled.

  3. Click Save.

More Information

Monitoring Background Operations