Preparing storage for Cloudera Streaming Analytics
Prepare a bucket in a storage service that is registered in Anywhere Cloud before you deploy Cloudera Streaming Analytics. Cloudera SQL Stream Builder (SSB) uses the bucket for uploaded files, project files, user-defined functions, connector and data format JAR files, checkpoints, and savepoints.
When you bind a bucket to the default purpose at deployment, SSB does the
following:
- Stores the files that you upload, such as connector and data format JAR files, and the Python code of user-defined functions, in the artifacts folder of its directory in the bucket.
- Turns on the Functions area of the Streaming SQL Console, where you create user-defined functions.
- Uses the checkpoints and savepoints folders as the default checkpoint and savepoint directories of your jobs.
Cloudera Streaming Analytics keeps its files in a directory of its own in the bucket,
s3://[***BUCKET***]/[***CLUSTER-DOMAIN***]/[***NAMESPACE***],
so that engine instances that share a bucket do not overwrite each other's files. The directory
contains the following folders:
- artifacts
- The files that you upload to SSB projects and your user-defined functions.
- checkpoints
- The default checkpoint directory for all jobs.
- savepoints
- The default savepoint directory for all jobs.
Storage is required. Bind a bucket to the default
purpose when you deploy. Without it, uploads fail, and user-defined functions, project files
such as TLS truststores and keystores, connector and data format JAR files, and the default
checkpoint and savepoint directories do not work.
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.
- You must be a platform administrator: your Anywhere Cloud account must have administrator access to the Anywhere Cloud Console.
- You must have access to the object storage service, or work with its administrator.
The bucket is ready. When you deploy, bind it to the default purpose on the
Storage tab of the Cloudera Streaming Analytics engine. For
more information, see Deploying Cloudera Streaming Analytics on Anywhere Cloud.
