当前位置:   article > 正文

Kafka集群和kafka-manager安装

Kafka集群和kafka-manager安装

Kafka集群和kafka-manager安装

MacBook Linux安装zookeeper

MacBook Linux安装Kafka

kafka-manager安装

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26

Kafka集群

Kafka集群依赖zookeeper集群

Zookeeper集群部署和单机部署

第一台
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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/517823
推荐阅读
相关标签
  

闽ICP备14008679号