DC Associates Group logoDC Associates Group

Home / Docs / Apache Kafka (KRaft, Hardened) / Install

Install Apache Kafka (KRaft, Hardened)

Launch, connect, and validate — with the expected result after every step.

Prerequisites

AWS

  1. Subscribe and launch; on-instance CLI works immediately (advertised listener = localhost).
    Expected result kafka-topics.sh --list returns without error.

Google Cloud

  1. Deploy from the listing (IAP-only SSH; no broker exposure by the package).
    Expected result On the VM: kafka-topics.sh --bootstrap-server localhost:9092 --create --topic demo succeeds.
  2. For in-VPC clients: edit advertised.listeners in kraft-server.properties to the VM's internal DNS/IP, restart kafka, and open 9092 to your subnet only.
    Expected result Clients in the subnet produce/consume; the internet cannot reach the broker.

Validate

/opt/kafka/bin/kafka-broker-api-versions.sh --bootstrap-server localhost:9092

First boot: kafka-format.service generates a fresh KRaft cluster id and formats /var/lib/kafka once (guarded by meta.properties), then kafka.service starts. Broker answers within ~1 minute.

Secure it

Costs & quotas

Software is billed by the marketplace at the listed rate; infrastructure (VM, storage, egress) is billed by your cloud at its standard rates. The recommended size fits default service quotas in most accounts — if you scale out, review your cloud's quota console before launch.

Next: configuration · troubleshooting · security notes