[ApacheKafka] Installation Guide on Ubuntu1204server install a single node kafka, my machine has been installed on the zookeeper-345 to download a kafka-072targz, unzip the installation & gt; tarxzfkafka-& lt; VERSION & gt; tgz & gt; cdkafka-& lt; V [Apache Kafka] Installation Guide to install a single node kafka on Ubuntu12.04 server. I have installed a zookeeper-3.4.5 on my machine to download a kafka-0.7.2.tar.gz, decompress and install> tar xzf kafka- . Tgz> cd kafka- >./Sbt update>./sbt package will automatically install Scala during this process, which takes some time. Modify the/config/server. properties file to change the hostname to the IP address of your host. you also need to change zk. connect to the IP address of ZooKeeper: 2181. Then restart the kafka-server-start.shbin/kafka-server-start.sh config/server. propertiesproducer send message bin/kafka-console-producer.sh -- zookeeper localhost: 2181 -- topic test This is a test. consumer get message bin/kafka-console-consumer.sh -- zookeeper localhost: 2181 -- topic test -- from-beginning
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