A savepoint is a saved copy of the state of a job. Use savepoints to stop a job and
later continue from where it left off, for example when you change the SQL or upgrade the
job.
Cloudera SQL Stream Builder (SSB) takes a savepoint when it stops a job that has Restore From
Savepoint turned on. Checkpoints, in contrast, are created periodically while
a job runs with checkpointing turned on. For the difference, see Checkpoints and savepoints.
SSB has default checkpoint and savepoint directories in the bucket that is bound to the
default purpose of the engine. You can set other directories in the job
settings. For more information, see
Preparing storage for Cloudera Streaming Analytics.
In the Streaming SQL Console, click Projects in the left
navigation pane, and click the name of your project.
The project opens, with the Explorer panel on the left.
To open the Streaming SQL Console, see Accessing Cloudera SQL Stream Builder.
Click the name of the job.
The job opens in the SQL editor.
Click Job Settings.
The Job Settings panel opens, on the
General tab.
Under Checkpoint, turn on Enable
Checkpointing, and check the Checkpoint Directory.
Leave the directory empty to use the default directory, if your deployment has
one.
Under Savepoint, turn on Restore From
Savepoint.
In Savepoint Directory, enter the directory for the
savepoints of the job.
If you leave the field empty, the job uses the default path. To see or change the
default, click Set global values.
A checkpoint or savepoint directory that you set must be in a bucket that is bound to the
Cloudera Streaming Analytics engine instance. Jobs get the storage credentials of
the bound buckets only. A path in another bucket fails with an access error.
From the Job Actions menu, click Save
Job.
Take a savepoint
Stop the job. SSB takes the savepoint before it stops the job. For the steps, see
Stopping a job.
Restore from a savepoint
Run the job again. With Restore From Savepoint on, the job
starts from the savepoint in the savepoint directory. For the steps, see
Restarting a job.