美文网首页
Confluent安装

Confluent安装

作者: 别时茫茫 | 来源:发表于2022-03-22 22:35 被阅读0次

Confluent 是一个对Kafka相关组件管理的平台

下载Confluent

解压后的目录文件
(base) ➜  confluent-7.0.1 ls
README  bin     etc     lib     libexec share   src

安装

设置环境变量:
CONFLUENT_HOME=your-confluent-path
我把confluenc放在了/usr/local下面
所以有下面的环境变量
export CONFLUENT_HOME=/usr/local/confluent-7.0.1

启动相关服务

  • 在本地启动服务
  • 之后可以打开,localhost:9092地址,可以看到一个管理界面
confluent local services start
  • 如果出现了不能够启动Schema Registry 的情况
  • 参考下面的解决办法
$CONFLUENT_HOME/etc/kafka, you'll see server.properties.

Uncomment the following and update as below

listeners=PLAINTEXT://0.0.0.0:9092

advertised.listeners=PLAINTEXT://localhost:9092

listener.security.protocol.map=PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL

In $CONFLUENT_HOME/etc/schema-registry, you'll see schema-registry.properties, open and update as below

listeners=http://0.0.0.0:9092

参考

相关文章

网友评论

      本文标题:Confluent安装

      本文链接:https://www.haomeiwen.com/subject/thuqjrtx.html