Kafka Pseudo-Distributed installation

Source: Internet
Author: User

A distributed messaging system with high throughput

Equivalent to a large cache

Architecture pseudo-Distributed installationTar-xzf kafka_2.10-0.8.1.1.tgzstart ZK bin/zookeeper-server-start.sh config/zookeeper.propertiesStart service bin/kafka-server-start.sh config/server.propertiesCreate theme bin/kafka-topics.sh--create--zookeeper localhost:2181--replication-factor 1--partitions 1--topic testView the topic bin/kafka-topics.sh--list--zookeeper localhost:2181

 command-line client operationsCreate producer bin/kafka-console-producer.sh--broker-list localhost:9092--topic test Create consumer bin/kafka-console-consumer.sh-- Zookeeper localhost:2181--topic Test--from-beginningcluster InstallationInstall ZK cluster Modify configuration file Server.properties

Broker.id: Only, fill in the numbers

Host.name: Only, fill the server

zookeeper.connect=192.168.40.134:2181,192.168.40.132:2181,192.168.40.133:2181

   false distribution error?  remove in config fileConfiguration file  

Kafka Pseudo-Distributed installation

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.