0Pricing
Apache Kafka & Stream Processing Fundamentals · レッスン

Kafkaのローカル環境構築

ローカルマシンにシングルノードKafkaクラスターをインストールして設定し、実際に操作する経験を積みます。

「Kafkaのローカル環境構築」はCoddyKit上の無料Apache Kafka & Stream Processing Fundamentalsレッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはApache Kafka & Stream Processing Fundamentals学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Apache Kafka & Stream Processing Fundamentalsコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

Why Local Kafka Setup?

Let's run Kafka on your own machine — perfect for learning, testing, and development. A local setup is your personal sandbox, no cloud required.

Prerequisites: Java & OS

First, the prerequisites: JDK 8+ (Kafka runs on the JVM) and any major OS — Linux, macOS, or Windows via WSL. Check with java -version.

Download Kafka Binary

Now download the Kafka binary from the official Apache site — grab the latest stable release. The shown curl command pulls it straight to your machine.

Extract Kafka Files

Next, extract the downloaded .tgz archive with tar -xzf, then cd into the new folder. You're now inside the Kafka install directory.

Understanding ZooKeeper's Role

ZooKeeper is the distributed coordinator Kafka has long used to track brokers and store metadata. Newer Kafka uses KRaft instead, but ZooKeeper is still common for learning.

Starting ZooKeeper Server

Start ZooKeeper (bundled with Kafka) using the shown command. It'll spew logs — keep this terminal open, since ZooKeeper has to stay running.

Kafka Broker: The Data Hub

A Kafka broker is the server running the Kafka process — the heart of the cluster. It stores messages in topics and serves producers and consumers. We'll run one locally.

Starting Kafka Broker

With ZooKeeper up, open a new terminal and start the broker with the shown command. Keep it running too — you now have a single-node Kafka cluster live.

Verify Your Setup

Confirm it works: in a new terminal, create a test topic with the shown kafka-topics.sh command. No errors means your local Kafka is running.

Setup Steps Check

You've just learned the steps to get Kafka running locally. Can you put them in the correct order?

Local Setup Recap

You did it — a local Kafka cluster is running. You installed Java, extracted the binaries, started ZooKeeper and the broker, and verified with a test topic. Next: producing and consuming.

よくある質問

「Kafkaのローカル環境構築」レッスンは無料ですか?

はい。「Kafkaのローカル環境構築」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Apache Kafka & Stream Processing Fundamentalsコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Apache Kafka & Stream Processing Fundamentalsコースには全4レッスンが含まれています。

「Kafkaのローカル環境構築」で何を学びますか?

ローカルマシンにシングルノードKafkaクラスターをインストールして設定し、実際に操作する経験を積みます。 ブラウザで直接実行するハンズオンコードでApache Kafka & Stream Processing Fundamentalsを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

Apache Kafka & Stream Processing Fundamentalsを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのApache Kafka & Stream Processing Fundamentalsは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。

「Kafkaのローカル環境構築」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このApache Kafka & Stream Processing Fundamentalsレッスンでコードを書いて実行できますか?

はい。すべてのApache Kafka & Stream Processing Fundamentalsレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. Apache Kafkaとは
  2. Kafkaの基本概念:ブローカーとトピック
  3. Kafkaのローカル環境構築
  4. コミットログ:Kafkaのデータ保存方法
← Apache Kafka & Stream Processing Fundamentalsに戻る