Streaming: Kafka and Flink on Cloudera Base on premises

How Cloudera's streaming stack fits together on premises: Kafka 3.9 with KRaft, Schema Registry, Streams Messaging Manager, Streams Replication Manager, Cruise Control and Kafka Connect with Debezium, plus Apache Flink 1.20 and SQL Stream Builder in Cloudera Streaming Analytics 1.17.1, with patterns for a bank and the decisions to make.

Updated CompTech Team

A core banking system closes its books at night. A fraud team wants to know about a suspicious card transaction within a second, not the next morning. A regulator wants every change to a customer record kept, in order, with proof of who read it. The three demands sound different, but the engineering answer is the same: treat changes as a stream of events, keep the stream durable and governed, and let several systems read it at their own pace. On Cloudera that stream is Apache Kafka, and the engine that computes on it as it flows is Apache Flink.

Cloudera ships both as part of Cloudera Base on premises under two names. Streams Messaging is Kafka with the services around it: Schema Registry, Streams Messaging Manager, Streams Replication Manager, Cruise Control and Kafka Connect. Streaming Analytics is Flink with SQL Stream Builder, delivered as a separate parcel. This article explains what each part does, what changed in the 7.3.2 line, what a Flink job guarantees, which patterns banks use, how the stack compares with Red Hat's Kafka on OpenShift, and what to decide before the first topic is created.

Two parcels, one platform

Streams Messaging comes with Cloudera Runtime and upgrades with the Base cluster. Streaming Analytics is installed from its own parcel, and each release names the exact Runtime it supports. Versions are as of October 2026.

Component Version on Base 7.3.2 What it does
Apache Kafka 3.9.1, 3.9.2 from service pack 1 The durable, partitioned log that every other part reads or writes
KRaft Generally available, the recommended mode Kafka's own metadata quorum, replacing ZooKeeper
Schema Registry 0.10.0 Stores Avro and JSON schemas and enforces compatibility rules
Streams Messaging Manager 2.3.0 The operations console: topics, consumers, lag, alerts, lineage, Connect
Streams Replication Manager Runtime component MirrorMaker 2 packaged for cross-cluster and cross-site replication
Cruise Control Runtime component Rebalances partitions across brokers and self-heals after failures
Kafka Connect Runtime component, Debezium 3.3.1 connectors Moves data between Kafka and databases, files and object stores without code
Cloudera Streaming Analytics 1.17.1 on Runtime 7.3.2 CHF1 Apache Flink 1.20.1 and SQL Stream Builder, Java 17 or 21

Streams Messaging: Kafka and the services around it

Kafka 3.9 with KRaft

Kafka stores events in topics. A topic is split into partitions, each partition is an append-only log replicated to three brokers by default, and each event keeps its position, the offset, for as long as the retention policy says. Producers append, consumers read from an offset they choose, and the broker does not care how many readers there are or how far behind each one is: the fraud model and the nightly archive read the same transaction topic without knowing about each other.

The 7.3.2 release moved Kafka from 3.4 to 3.9 and made KRaft generally available as the recommended metadata mode. Until now a Kafka cluster depended on ZooKeeper to hold which brokers exist, who leads each partition and how topics are configured. KRaft keeps that metadata inside Kafka, in a Raft log held by a quorum of three or five controller roles. There is one fewer system to secure, patch and back up, and large clusters recover faster because the controllers already hold the metadata when a broker returns. From service pack 1 a new controller joins the quorum automatically when it starts.

ZooKeeper mode is deprecated, and Cloudera supports migrating an existing cluster to KRaft only as part of the upgrade to 7.3.2, so a cluster that upgrades without migrating has to plan that work separately. Smaller 7.3.2 changes matter in a data centre too: IPv6 and dual-stack networking, diagnostic actions that package cluster and topic descriptions for a support case, and a chart of offline log directories so a failed disk is visible before consumers notice.

Streams Messaging on Cloudera Base. Producers such as applications, NiFi and Debezium send events into a central Kafka 3.9 cluster, where topics are split into partitions with three replicas, controllers keep metadata in a Raft log and Ranger checks every produce and consume. Consumers such as applications, Flink and Connect sinks read from it, and a pipe labelled SRM replicates to DR carries topics to a second-site cluster. A platform services box below holds Schema Registry, SMM, Cruise Control and Kafka Connect; SMM feeds back metrics, lag and alerts, and Connect supplies sources and sinks. The footer reads: one security model, Kerberos and TLS on every link, Ranger policies on topics, groups and schemas.

Schema Registry

A topic holds bytes. Without an agreement on what those bytes mean, every consumer has to defend itself against every producer's changes. Schema Registry stores Avro and JSON schemas, gives each version an identifier that producers put in the message header, and refuses a new version that would break existing readers. The compatibility rule is set per schema: backward lets a new reader read old messages, forward lets old readers read new messages, full requires both. For a bank the practical rule is simple: the transaction schema is a contract, adding an optional field is allowed, renaming or removing a field is a new topic. Ranger controls who may register or change a schema, and the Flink connectors and NiFi read the registry directly, so one definition serves every engine.

Streams Messaging Manager

Streams Messaging Manager (SMM) is the console an operations team lives in. It shows every broker, topic, partition, producer and consumer group with throughput and lag, draws the lineage from producers through topics to consumers so a team can see who depends on a topic before changing it, and raises alerts on lag, under-replicated partitions and broker health. It is also the user interface for Kafka Connect, so connectors are created, paused and inspected there.

Streams Replication Manager

Streams Replication Manager (SRM) is Cloudera's packaging of MirrorMaker 2. It copies topics to another cluster under a prefixed name that records the source, translates consumer offsets so a consumer group can move to the other site and carry on from the right place, and reports through SMM. The usual design is an active site and a disaster recovery site replicating in both directions, so that after a failover the recovered site can catch up. The 7.3.2 release added reverse checkpointing, which tracks consumer offsets on the target cluster back to the source so a failback produces fewer duplicates. When the primary and DR data centres sit in two cities on a leased line, the bandwidth of that link, not the broker count, limits how many topics are replicated.

Cruise Control

Brokers fill unevenly: a new broker joins empty, a hot topic lands its leaders on two hosts, a disk fails. Cruise Control watches partition sizes and broker load, proposes a rebalance that meets goals such as replica, disk and network balance, and executes it at a controlled rate. It can also act on its own when a broker dies, moving replicas to restore the replication factor.

Kafka Connect and Debezium

Kafka Connect runs connectors, configured programs that move data into or out of Kafka without application code: sinks to HDFS, Ozone, S3-compatible stores, JDBC databases and NiFi stateless flows, and sources from files, queues and databases. The connectors that matter most to a bank are the Debezium change data capture connectors for MySQL, PostgreSQL, Oracle, SQL Server and Db2, which read the database's own transaction log and publish every insert, update and delete as an event, in commit order, with the before and after image of the row. Cloudera upgraded Debezium from the 1.9 line to 3.3.1 in 7.3.2. That jump renames configuration properties and needs newer JDBC drivers, so connector configurations must be updated before the Runtime upgrade, not after.

Streaming Analytics: Flink and SQL Stream Builder

What Flink does

Kafka stores and moves events. Apache Flink computes on them while they move: it joins a payment to the customer's profile, counts transactions per card per minute, detects a pattern across several events and writes the result somewhere else, within milliseconds of the event arriving. Four ideas explain most of what Flink can and cannot do.

  • Streams and operators. A job is a graph of operators running in parallel across task managers under a job manager. On Cloudera Base the job runs on YARN, in its own application, next to Spark and Hive.
  • Event time and watermarks. Events carry the time they happened, not the time they arrived. Flink orders its windows by event time and uses watermarks, a running estimate of how late an event can still be, to decide when a window is complete, so a transaction delayed by a slow link still falls into the right minute.
  • State. A join or a window has to remember what it has seen. Flink keeps that state in each operator, in memory for small jobs or in RocksDB on local disk for large ones.
  • Checkpoints and exactly-once. At a set interval Flink snapshots every operator's state together with the Kafka offsets it has consumed and writes the snapshot to HDFS or Ozone. After a failure the job restarts from the last checkpoint and replays Kafka from those offsets. With the Kafka sink in transactional mode the output of each interval is committed as one Kafka transaction at the same moment, so a reader sees each result exactly once even if the job computed it twice. Savepoints are the same mechanism triggered by hand, used to stop a job, upgrade it and resume with its state intact.

Cloudera does not support Flink's old DataSet batch API, the SQL Client, the GPU resource plugin, or, in SQL and the Table API, non-windowed joins and non-windowed DISTINCT, because their state grows without limit. Joins have to be windowed or bounded by a time-to-live.

A Flink pipeline on Streaming Analytics. Kafka topics for transactions and customers send events into a central Flink 1.20 job, and Schema Registry supplies Avro schemas. The job, run from SQL Stream Builder or a DataStream jar on YARN, reads with event time and watermarks, keeps join and window state in RocksDB, and checkpoints to HDFS or Ozone for exactly-once processing. It writes upserts to an Iceberg table queried by Impala and Trino and sends alerts over REST to a fraud desk. A state and recovery box below holds checkpoints, savepoints, Kafka offsets committed with each checkpoint, and materialised views served over REST; an orange pipe carries the state snapshot up into the job. The footer reads: exactly once, offsets, operator state and the Kafka transaction commit together at each checkpoint.

SQL Stream Builder

Most people who need a streaming job are analysts and data engineers, not Java developers. SQL Stream Builder (SSB) lets them write Flink jobs as SQL. A Kafka topic becomes a virtual table once SSB reads its schema from Schema Registry, Hive and Kudu tables appear through catalogs, and a SELECT with a window, a join and a filter becomes a running Flink job on YARN. Results can go to a Kafka topic, to an Iceberg, Hive or Kudu table, to a JDBC database, or into a materialised view, which keeps the latest result per key and serves it over a REST endpoint. Logic that SQL cannot express is written as Python user-defined functions, and since the 1.15 line a query can also run in batch mode, so one statement serves both the backfill and the live stream.

Cloudera Streaming Analytics 1.17.1 is the current release, and the facts here come from its release notes. It runs Flink 1.20.1, supports JDK 17 and 21 only, and is built for Cloudera on premises 7.3.2.100, the first cumulative hotfix of 7.3.2. Its changes are a security pass over the embedded Tomcat and Log4j, framework and user-interface upgrades in SSB, custom Kafka connection properties and JKS, PKCS12 or BCFKS keystore types in the Kafka data source form, and a fix to the Kafka table viewer.

The release also carries a deprecation page for SSB, and it pays to read it precisely: SQL Stream Builder itself is not deprecated. Three pieces of it were removed in 1.17.1. JavaScript user-defined functions are gone, replaced by Python UDFs, which are enabled by default. Data transformations on Kafka tables, also called input transforms, are gone because they depended on JavaScript and only ran on JDK 11 or lower; Cloudera recommends Flink SQL or Python UDFs instead. The version 1 REST API is gone in favour of version 2. A site with JavaScript UDFs or scripts against the old API must rewrite them before upgrading.

Connectors

Connector Version in CSA 1.17.1 Typical use
Kafka and Schema Registry 3.4 and 1.2 Every source and most sinks, with Avro schema identifiers
Apache Iceberg 1.5.2 Streaming inserts and upserts into lakehouse tables
Hive, Kudu, HBase 1.20.1, 2.0, 4.0 Dimension tables, fast upserts, operational lookups
JDBC and CDC 3.2 PostgreSQL 9.6 to 16, MySQL 5.7 and 8, Oracle 19 to 23ai, Db2 11.5, SQL Server

The Iceberg connector joins the streaming stack to the rest of the platform: a Flink job can land events in an Iceberg table on Ozone every few seconds, and the Iceberg lakehouse article explains how Impala and Trino query it and how the Lakehouse Optimizer keeps the small files under control.

Patterns for a bank

The same four designs appear in almost every financial deployment, and they combine.

Change data capture from core banking. Debezium reads the core system's transaction log and publishes a topic per table. Nobody adds a trigger to the core database and nobody polls it, which is why the database team agrees to it. The topics feed the warehouse, the fraud model and the reporting store at once, each at its own pace, and the retention policy decides how far back a new consumer can replay. On Oracle or Db2 the connector needs the vendor's log-mining feature, which is a licensing conversation to have early.

Fraud scoring. A Flink job keys the transaction stream by card number, keeps a short window of recent transactions as state, computes features such as count and total in the last ten minutes and distance from the last location, calls a model, and writes a score to an alerts topic. The model can be rules in SQL, a Python UDF, or a call to a served model on Cloudera AI Inference. The latency budget is set by the checkpoint interval and the model call, not by Kafka.

Real-time dashboards. SSB materialised views give an operations centre a REST endpoint with the current value per branch, channel or ATM, refreshed as events arrive, with no database in between.

Stream to the lakehouse. Every topic that matters also lands in Iceberg, through Flink or a Connect sink, so the warehouse, the regulator's extract and the model training set are built from the same events that drove the real-time decisions, which is what makes the batch and streaming numbers agree when auditors ask. Government use looks the same with different nouns: land records, vehicle registrations and customs declarations are change streams that several agencies need to read without sharing a database.

Governance and security

The streaming stack has no security model of its own; it uses the one the Base cluster already has, covered in SDX and governance. Every broker, controller, connector, Flink job and SSB session authenticates with Kerberos, every connection carries TLS, and SSB and SMM sit behind Apache Knox for single sign-on. The Ranger plugin for Kafka evaluates policies on topics, consumer groups, the cluster and transactional identifiers, with wildcards so a team can own payments.*; Schema Registry has its own Ranger policies on schema groups; SSB jobs run as the submitting user and inherit that user's permissions. Ranger records every allowed and denied access, and Atlas holds Kafka topics and Flink applications as entities, so a topic appears in the same lineage graph as the Iceberg table it feeds.

Beside Red Hat Streams for Apache Kafka

Many organisations that look at Cloudera already run Kafka on OpenShift through Red Hat's Streams for Apache Kafka operator, which is what our own lab cluster uses and what our Kafka series is written against. They are the same Apache Kafka; the difference is where it lives and what surrounds it.

Cloudera Streams Messaging Red Hat Streams for Apache Kafka
Runs on Base cluster hosts, managed by Cloudera Manager OpenShift pods, managed by the operator
Kafka line 3.9 in 7.3.2 A 4.x line in current releases
Metadata KRaft, ZooKeeper deprecated KRaft only
Schema registry Cloudera Schema Registry with Ranger policies Apicurio Registry
Operations console Streams Messaging Manager The operator's console, Prometheus and Grafana
Replication and rebalancing SRM and Cruise Control in Cloudera Manager MirrorMaker 2 and Cruise Control as custom resources
Stream processing Flink and SSB on YARN Flink through its Kubernetes operator, or Kafka Streams in applications
Security Kerberos, Ranger, Atlas and Knox across the whole data platform OpenShift authentication, OAuth, ACLs per cluster

The choice follows the data. If the events feed Hive, Impala, Iceberg on Ozone and Cloudera AI, and the access policies must be the same Ranger policies that govern those tables, keep Kafka on the Base cluster. If the events feed microservices on OpenShift and the lakehouse reads Kafka only through a connector, run Kafka on OpenShift. Running both is common: SRM replicates between them, and Cloudera beside OpenShift covers that arrangement. Cloudera's Kafka trails the upstream line by design, because it is pinned to a Runtime with support through 2032.

Sizing and planning

Kafka capacity is a disk and network question before it is a CPU question.

  • Brokers. Start with three brokers and three KRaft controllers on separate hosts with local disks, and grow in steps Cruise Control can rebalance.
  • Partitions. The partition count sets the maximum consumer parallelism and cannot be reduced later. Derive it from target throughput divided by what one consumer handles, and keep partitions per broker in the low thousands.
  • Retention and disks. Retention is the replay window; seven days is a common default. Capacity is throughput multiplied by retention multiplied by the replication factor, plus headroom for rebalancing. Keep regulatory history short in Kafka and long in Iceberg, where Ozone's erasure coding makes the copy far cheaper.
  • Flink. Size task managers by state, not event rate: a large windowed join needs RocksDB on fast local disk and a checkpoint store that can absorb a full snapshot within the interval, and its own YARN queue so a backfill cannot starve the live job.
  • DR. Replicating every topic doubles the inter-site bandwidth. Classify topics, replicate those a recovery needs, and test the failback before relying on it.

What to decide

Decision The usual answer and why
KRaft or ZooKeeper KRaft for every new cluster; migrate existing clusters during the 7.3.2 upgrade, the only supported window
Where Kafka lives On the Base cluster when the consumers are Cloudera engines and Ranger must govern the topics; on OpenShift when the consumers are applications
Schema format and rule Avro with backward compatibility on production topics, enforced by Schema Registry and Ranger
CDC approach Debezium through Kafka Connect, reading the database log, configured with the 3.3 property names
Stream processing tool SSB for analysts and most pipelines; a Flink DataStream application when the logic needs custom state or a library
Where events are kept Short retention in Kafka, long retention in Iceberg on Ozone, both under the same Ranger policies
Data residency Every component runs without an internet connection; an air-gapped site needs a parcel repository and a certificate authority

We have not deployed Cloudera's streaming stack in our own lab, and the version facts above come from Cloudera's documentation as of October 2026, so verify the support matrix for the exact service pack you plan to run before ordering hardware.

Further reading

In this series