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.
  1. Create a bucket in a storage service of Anywhere Cloud.

    The storage service of Anywhere Cloud does not support Apache Ozone.

    Use a dedicated bucket for this Cloudera Streaming Analytics deployment.

  2. In the Anywhere Cloud Console, check that the storage service that holds the bucket is registered in Admin Center > Storage, and that the bucket is in its list of buckets.

    If the storage service is not registered yet, register it. The endpoint URL of the object storage service is part of the registration. For instructions, see Creating and managing storage service in the Anywhere Cloud documentation.

    The access permissions of the bucket are configured on the storage service in Anywhere Cloud. You grant them to the engine when you bind the bucket at deployment.

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.