码迷,mamicode.com
首页 > 其他好文 > 详细

安装kafka 记录

时间:2017-10-12 13:05:42      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:cmd   zook   actor   依赖   load   create   from   记录   cer   


sudo ./zoo /zoo /bin/zkServer.sh start

 

sudo ./kafkacluster/kafka1/bin/kafka-server-start.sh ./kafkacluster/kafka1/config/server.properties &

sudo ./kafkacluster/kafka1/bin/kafka-topics.sh --list --zookeeper localhost:3003

kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test

cd /opt
sudo ./zookeepercluster/zookeeper-3.4.10-1/bin/zkServer.sh start &
sudo ./zookeepercluster/zookeeper-3.4.10-2/bin/zkServer.sh start &
sudo ./zookeepercluster/zookeeper-3.4.10-3/bin/zkServer.sh start &

(sudo ./kafkacluster/kafka1/bin/kafka-server-start.sh ./kafkacluster/kafka1/config/server.properties) &
(sudo ./kafkacluster/kafka2/bin/kafka-server-start.sh ./kafkacluster/kafka2/config/server.properties) &
(sudo ./kafkacluster/kafka3/bin/kafka-server-start.sh ./kafkacluster/kafka3/config/server.properties) &


./kafka-console-producer.sh --broker-list localhost:9092 --topic test1234

./kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test1234 --from-beginning

windows


.\bin\zkServer.cmd

查找库依赖
ldd ~/.nuget/packages/librdkafka.redist/0.9.4/runtimes/rhel-x64/native/librdkafka.so

liblz4

yumdownloader libunwind libicu
yumdownloader epel-release

yumdownloader lz4

rpm -ivh libunwind***.rpm

liblz4

安装kafka 记录

标签:cmd   zook   actor   依赖   load   create   from   记录   cer   

原文地址:http://www.cnblogs.com/Martianhh/p/7655454.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!