Architecture

A Cloudera Streaming Analytics engine instance runs Cloudera SQL Stream Builder (SSB), its database, and your Flink jobs in an Anywhere Cloud compute cluster.

Cloudera Streaming Analytics

Table 1. Cloudera Streaming Analytics components
Component What it does
Streaming SQL Console The web interface where you manage projects, write SQL, and run and monitor jobs.
SSB server Validates your SQL, submits each job to a Flink cluster, and stores project and job metadata.
PostgreSQL Stores SSB project and job metadata. The engine creates and manages its own PostgreSQL database.
Flink Kubernetes Operator Starts, stops, and recovers the Flink clusters that run your jobs.
Flink JobManager and TaskManager Run each SQL job. The JobManager coordinates the job, and the TaskManagers process the data.
Cloudera Base Connector Provides the Hadoop, Hive, and Kerberos client configuration for a Cloudera Base on premises cluster.

Anywhere Cloud

Anywhere Cloud provides the following capabilities to Cloudera Streaming Analytics:

  • A unified operational model for platform and workload services
  • Integration with cluster ingress, storage, and observability
  • Execution environment for Cloudera Streaming Analytics
  • Lifecycle management

For Cloudera Streaming Analytics, this means:

Single sign-on
Users sign in through the Anywhere Cloud Console, and SSB uses the identity from the platform. SSB has no separate user accounts or sign-up. The users that you name in the Admin usernames: comma separated list field of the engine configuration are SSB administrators. Each name must be a username in the identity provider of the platform.
Access
The Streaming SQL Console is available through the platform gateway, at an address in the form https://[***INSTANCE-NAME***]-ssb-sse.[***CLUSTER-DOMAIN***]/. For more information, see Accessing Cloudera SQL Stream Builder.
Observability
Anywhere Cloud collects the logs of the engine and the Flink runtime metrics of your jobs, based on the telemetry settings of the compute cluster, and Cloudera Streaming Analytics uses these settings automatically. You can view the logs and metrics with the Anywhere Cloud observability tools. For more information, see Viewing logs for Cloudera Streaming Analytics and Flink metrics for Cloudera Streaming Analytics. For the telemetry settings, see Telemetry Engine in the Anywhere Cloud documentation.
Lifecycle
You deploy and delete Cloudera Streaming Analytics engine instances from the Anywhere Cloud Console.
Maui
Your AI coworker and a platform service of Anywhere Cloud. Maui is not deployed with Cloudera Streaming Analytics. With Maui, you can work with your SSB projects and jobs in natural language. Maui acts with your identity and permissions, and it is available when an administrator enables Maui in Anywhere Cloud. For more information, see Maui chat for Cloudera SQL Stream Builder.

Storage for uploaded files, JAR files, user-defined functions, checkpoints, and savepoints

Cloudera Streaming Analytics uses the object storage that an administrator registers in Anywhere Cloud. It does not take storage credentials in its own configuration. When you deploy the engine instance, you bind a bucket to the default purpose on the Storage tab, and grant the read, write, list, and delete permissions.

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.

A checkpoint or savepoint directory that you set takes precedence over these defaults. The order of precedence is a SET statement in the job, the settings of the job, and then the global settings.

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.

For more information, see Preparing storage for Cloudera Streaming Analytics, and Creating and managing storage service in the Anywhere Cloud documentation.

Connection to Cloudera Base on premises

When you connect the Cloudera Base Connector to the Cloudera Manager of a Cloudera Base on premises cluster, the Cloudera Base Connector fetches the Hadoop, Hive, and Kerberos client configuration and a keytab from the Cloudera Base on premises cluster. The engine copies them into the namespace of Cloudera Streaming Analytics, so that your jobs can reach Cloudera Base on premises services, such as Kafka and the Hive Metastore for Iceberg tables.

Each deployment uses a Cloudera Base Connector instance: either a new instance on the compute cluster or an existing instance from a shared deployment. If you do not connect it to Cloudera Manager, SSB runs without Hadoop and Kerberos configuration. For more information, see Using Cloudera Base Connector in the Anywhere Cloud documentation.

How jobs are run

  1. You write a SQL statement in the Streaming SQL Console and run it.
  2. SSB parses the statement and checks it against the schemas of the tables in your project.
  3. SSB submits the job to Flink. By default, a job runs in session mode, on your session cluster, which your jobs share. A job in application mode gets a dedicated Flink cluster. The Flink Kubernetes Operator starts the JobManager and TaskManager pods of each Flink cluster in the engine namespace.
  4. The job processes data continuously and writes the results to its sinks until you stop it.