+

Search Tips   |   Advanced Search

Stopping clusters using the job manager

In a flexible management environment, we can submit the Stop cluster job to stop a running cluster that is on a managed target of the job manager.

Start the job manager if it is not running already.

To submit the Stop cluster job, the deployment manager node on which the cluster resides must be a managed target of the job manager. The cluster must be running.

Your ID at the job manager must be authorized for the administrator role or the operator role to submit jobs. When submitting a job, we can specify a user name and password for authentication and authorization at the target or targets. When submitting a job to multiple targets, the user name and password or the credentials for the submitter must be applicable to all the job targets.

Use the administrative console of the job manager or the deployment manager to stop clusters on one or more managed targets. From the console, choose the Stop cluster job, specify job options, review the summary, and submit the job.

Instead of using a console, we can run the stopCluster job script in the AdministrativeJobs command group. See the Administrative job types topic.


Tasks

  1. From the navigation tree of the administrative console, click...

      Jobs > Submit

  2. Choose a job to stop a cluster.

    1. Select the Stop cluster job type from the list.

    2. Optionally specify a description of the job.

    3. Click Next.

  3. Choose the job targets.

    1. Select a group of targets from the list, or select Target names.

      Only groups of targets that are valid for the job type that we selected are displayed in the list of target groups.

    2. If we selected Target names, then specify a target name and click Add, or click Find and specify the chosen targets on the Find targets page.

    3. If user authentication is required, specify a user name, password, or any other authentication values as needed.

    4. Click Next.

  4. Specify parameters for the stop cluster job.

    1. For Cluster name, specify the name of cluster to stop.

      To see the names of existing clusters on the targets, click Find on the Specify job parameters page. On the Find target resources page, specify the targets and click Find.

      For example, suppose a managed target, myNode01, has a cluster named cluster2 to stop. Specify the name:
      cluster2
      

    2. Optionally, for Timeout in minutes specify the maximum number of minutes to wait for the cluster to stop before returning the cluster state.

    3. Click Next.

  5. Schedule the job.

    The times and dates specified are relative to the job manager.

    1. Optionally specify one or more email addresses where notifications are sent when the job finishes.

      If we specify multiple email addresses, separate them with commas.

    2. Select when the job is available for submission.

    3. Select the job expiration.

    4. Optionally specify a recurring interval for the job, a start date and time for the interval, and an end date and time for the interval.

    5. Click Next.

  6. Review the summary, and click Finish to submit the job.

The targets run the job and attempt to stop the cluster.


What to do next

On the Job status page, click the ID of the stop cluster job and view the job status. Click the status refresh icon

to refresh the displayed status.

If the job is not successful, view any error messages that result from running the job, correct the error condition, and submit the job again.

If the job is successful, the status on the Target resources page of the cluster is Stopped. Click Jobs > Target resources > resource_name to see the resource status.

After stopping the cluster, we can run the following jobs:

  • Set up a job manager environment
  • Restart the job manager
  • Restart the deployment manager
  • Restart a node
  • Create clusters using the job manager
  • Checking job status
  • Deleting clusters using the job manager
  • Starting clusters using the job manager
  • Administrative job types
  • Find targets
  • Find target resources
  • Target resources collection