Kafka集群和kafka-manager安装

Kafka集群和kafka-manager安装

MacBook Linux安装zookeeper

MacBook Linux安装Kafka

kafka-manager安装

shell 复制代码
curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.repo

yum install -y sbt 

mkdir ~/.sbt 

vim ~/.sbt/repositories   
[repositories]
#local
public: http://maven.aliyun.com/nexus/content/groups/public/
typesafe:http://dl.bintray.com/typesafe/ivy-releases/ , [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
ivy-sbt-plugin:http://dl.bintray.com/sbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
sonatype-oss-releases

sonatype-oss-snapshots


wget https://github.com/yahoo/kafka-manager/archive/1.3.3.18.zip
unzip 1.3.3.18.zip

#wget https://github.com/yahoo/kafka-manager/archive/1.3.3.18.tar.gz
#tar -zxvf 1.3.3.18.tar.gz

rm 1.3.3.18.zip
/data/apps/kafka-manager-1.3.3.18
./sbt clean dist

Kafka集群

Kafka集群依赖zookeeper集群

Zookeeper集群部署和单机部署

shell 复制代码
第一台
broker.id=1
listeners=PLAINTEXT://10.2.45.3:9092
log.dirs=/data/xinyun/datas/kafka-logs
zookeeper.connect=10.2.45.3:2181,10.2.45.4:2181,10.2.45.5:2181

第二台
broker.id=2
listeners=PLAINTEXT://10.2.45.4:9092
log.dirs=/data/xinyun/datas/kafka-logs
zookeeper.connect=10.2.45.3:2181,10.2.45.4:2181,10.2.45.5:2181

第三台
broker.id=3
listeners=PLAINTEXT://10.2.45.5:9092
log.dirs=/data/xinyun/datas/kafka-logs
zookeeper.connect=10.2.45.3:2181,10.2.45.4:2181,10.2.45.5:2181
相关推荐
廋到被风吹走8 小时前
【消息队列】选型深度对比:Kafka vs RocketMQ vs RabbitMQ
kafka·rabbitmq·rocketmq
像少年啦飞驰点、9 小时前
Java大厂面试真题:Spring Boot + Kafka + Redis 在电商场景下的实战应用
java·spring boot·redis·分布式·kafka·面试题·电商秒杀
China_Yanhy9 小时前
生产级 Amazon MSK (Express 模式) 架构构建与选型实战白皮书
架构·kafka·云计算·aws
indexsunny10 小时前
互联网大厂Java面试实战:Spring Boot与微服务在电商场景中的应用
java·spring boot·redis·微服务·kafka·spring security·电商
a努力。10 小时前
得物Java面试被问:Kafka的零拷贝技术和PageCache优化
java·开发语言·spring·面试·职场和发展·架构·kafka
有梦想的攻城狮1 天前
kafka消息在发送时通过压缩算法进行压缩,在Broker是否会进行解压缩
分布式·kafka·压缩·lz4
小萌新大梦想1 天前
M1安装Kafka
分布式·kafka
AIGCExplore1 天前
Kafka 安装部署
分布式·kafka
有梦想的攻城狮1 天前
kafka-client各版本消息格式、协议版本及兼容性问题整理
分布式·kafka·版本
廋到被风吹走1 天前
【消息队列】Kafka 核心概念深度解析
分布式·kafka