KAFKA-14188; Getting started for Kafka with KRaft (#12604)
Update the quickstart HTML pages for Kafka and Kafka Stream to include how to quickly start and
experiment with a Kafka cluster using KRaft in addition to ZooKeeper.
Reviews: Colin Patrick McCabe <cmccabe@apache.org>, Chase Thomas <forlack@users.noreply.github.com>, Luke Chen <showuon@gmail.com>
pull/12611/head
José Armando García Sancio2 years agocommitted byGitHub
This tutorial assumes you are starting fresh and have no existing Kafka or ZooKeeper data. However, if you have already started Kafka and
ZooKeeper, feel free to skip the first two steps.
This tutorial assumes you are starting fresh and have no existing Kafka or ZooKeeper data. However, if you have already started Kafka, feel free to skip the first two steps.
</p>
<p>
@ -98,19 +97,46 @@ Note that there are multiple downloadable Scala versions and we choose to use th
@@ -98,19 +97,46 @@ Note that there are multiple downloadable Scala versions and we choose to use th
<h4><aid="quickstart_streams_startserver"href="#quickstart_streams_startserver">Step 2: Start the Kafka server</a></h4>
<p>
Kafka uses <ahref="https://zookeeper.apache.org/">ZooKeeper</a> so you need to first start a ZooKeeper server if you don't already have one. You can use the convenience script packaged with kafka to get a quick-and-dirty single-node ZooKeeper instance.
Apache Kafka can be started using ZooKeeper or KRaft. To get started with either configuration follow one of the sections below but not both.
<h4><aid="quickstart_streams_prepare"href="#quickstart_streams_prepare">Step 3: Prepare input topic and start Kafka producer</a></h4>
@ -304,7 +330,7 @@ Looking beyond the scope of this concrete example, what Kafka Streams is doing h
@@ -304,7 +330,7 @@ Looking beyond the scope of this concrete example, what Kafka Streams is doing h
<h4><aid="quickstart_streams_stop"href="#quickstart_streams_stop">Step 6: Teardown the application</a></h4>
<p>You can now stop the console consumer, the console producer, the Wordcount application, the Kafka broker and the ZooKeeper server in order via <b>Ctrl-C</b>.</p>
<p>You can now stop the console consumer, the console producer, the Wordcount application, the Kafka broker and the ZooKeeper server (if one was started) in order via <b>Ctrl-C</b>.</p>