Kafka集群和kafka-manager安装
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集群
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