Installing stand-alone Kafka under Windows

Source: Internet
Author: User

Zookeeper

After decompression into the Conf directory, copy out a zoo.cfg, and then into the bin directory, run directly Zkserver.cmd

Kafka

First you have to have an installation package:

Unzip, directory structure:

Config directory is a config file, do not configure here

In the root directory, enter CMD at the location of the path, and enter to jump out of the command line

First Pit

Input:

. \bin\windows\kafka-server-start.bat. \config\server.properties

Through the Internet access to know, first set clsaapath,so--

set classpath=.

A large pile of it, it succeeded.

The following test: First go to the Windows directory to get the command line, enter the following command

Kafka-topics.bat--create--zookeeper localhost:218111 --topic mytest

A second pit.

Or the old way, first set classpath. Enter the following to view the topic list

Kafka-topics.bat--list--zookeeper localhost:2181

Next, create the producer, enter:

Kafka-console-producer.bat--broker-list localhost:9092 --topic mytest

Next, open a new command line and enter the following

Kafka-console-consumer.bat--bootstrap-server localhost:9092 --topic mytest-from-beginning

now , go back to the producer's command line and enter any content. You can see that when you enter the car, the consumer automatically receives your message

Installing stand-alone Kafka under Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.