安装kafka 记录

Posted Martian hh

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装kafka 记录相关的知识,希望对你有一定的参考价值。


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 记录的主要内容,如果未能解决你的问题,请参考以下文章

kafka安装和使用远程代码进行访问 ---附踩坑记录

zk-kafka安装记录

win10安装virtualbox及部署kafka踩坑记录

win10安装virtualbox及部署kafka踩坑记录

win10安装virtualbox及部署kafka踩坑记录

kafka学习(一安装)