A job does not stop

A job with Restore From Savepoint turned on does not stop when its checkpoint or savepoint directory is in a bucket that is not bound to the engine instance. Use directories in a bound bucket, or the default directories.

Symptoms

You click Stop, but the job keeps running, or the stop fails with an access error.

Cause

When Restore From Savepoint is on in the job settings, SSB takes a savepoint before it stops the job. It needs a checkpoint directory and a savepoint directory for that. The default directories are in the bucket that is bound to the default purpose of the engine. If a directory in the job settings or the global settings is in a bucket that is not bound, the stop fails. If no savepoint location is configured and you turn on Restore From Savepoint, the job cannot start.

Solution

  1. Open the job, and click Job Settings.
  2. On the General tab, set the Checkpoint Directory and the Savepoint Directory to paths in a bound bucket, or clear them to use the default directories. You can also turn off Restore From Savepoint if the job does not need a savepoint.
    The default directories are in the bucket that is bound to the default purpose of the engine. See Preparing storage for Cloudera Streaming Analytics.
  3. From the Job Actions menu, click Save Job.
  4. Stop the job again.
    For more information, see Stopping a job and Managing savepoints for SQL jobs.