Get started with OpenShift Streams for Apache Kafka

Red Hat OpenShift Streams for Apache Kafka is a managed cloud service for architects and developers working on event-driven applications. It provides hosted and managed, high-availability Kafka clusters on-demand, so you can focus on developing your applications while Red Hat takes care of the infrastructure.  In this learning path you’ll sign up for a free Red Hat account, provision a managed Kafka instance, and connect to it using service account credentials via SSL.

You can also use the following kcat command to view broker and topic information. Remember to replace the bootstrap server and credentials as described in previous examples.

$ kcat -b $BOOTSTRAP_SERVER \
-X security.protocol=SASL_SSL \
-X sasl.mechanisms=PLAIN \
-X sasl.username="$CLIENT_ID" \
-X sasl.password="$CLIENT_SECRET" -L

The output will resemble the following:

Metadata for all topics (from broker -1: sasl_ssl://game-kafka-c--ungpmsi-k-ft-vnpg.bf2.kafka.rhcloud.com:443/bootstrap):
 1 brokers:
  broker 0 at broker-0-game-kafka-c--ungpmsi-k-ft-vnpg.bf2.kafka.rhcloud.com:443 (controller)
 1 topic:
  topic "songs" with 1 partitions:
    partition 0, leader 0, replicas: 0, isrs: 0

This output explains that the single partition of the Songs topic is replicated across all three brokers, and that broker 1 is the leader of the partition. The replicas are populated by following the leader state.

Previous resource
Creating a topic
Next resource
Producers and consumers recap