简体   繁体   English

Kafka Manager 应该单独安装 Zookeeper 吗?

[英]Should Zookeeper be installed seperately for Kafka Manager?

In Kafka-manager github page it is written that:在 Kafka-manager github页面中写道:

The minimum configuration is the zookeeper hosts which are to be used for kafka manager state.最低配置是用于 kafka 管理器 state 的 zookeeper 主机。 This can be found in the application.conf file in conf directory.这可以在 conf 目录中的 application.conf 文件中找到。 The same file will be packaged in the distribution zip file;相同的文件将打包在分发 zip 文件中; you may modify settings after unzipping the file on the desired server.您可以在所需服务器上解压缩文件后修改设置。

kafka-manager.zkhosts="my.zookeeper.host.com:2181" You can specify multiple zookeeper hosts by comma delimiting them, like so: kafka-manager.zkhosts="my.zookeeper.host.com:2181" 您可以通过逗号分隔多个 Zookeeper 主机,如下所示:

kafka-manager.zkhosts="my.zookeeper.host.com:2181,other.zookeeper.host.com:2181" Alternatively, use the environment variable ZK_HOSTS if you don't want to hardcode any values. kafka-manager.zkhosts="my.zookeeper.host.com:2181,other.zookeeper.host.com:2181" 或者,如果您不想硬编码任何值,请使用环境变量 ZK_HOSTS。

ZK_HOSTS="my.zookeeper.host.com:2181" ZK_HOSTS="my.zookeeper.host.com:2181"

So my questions are:所以我的问题是:

  1. Does Kafka-manager already contain Zookeeper when I download it?当我下载它时,Kafka-manager 是否已经包含 Zookeeper?

  2. Should I install Zookeeper for Kafka Manager seperately or use already installed Zookeeper used for Apache Kafka?我应该单独为 Kafka Manager 安装 Zookeeper,还是使用已安装的用于 Apache Kafka 的 Zookeeper?

  3. How many Zookeper instances are required for Kafka-Manager? Kafka-Manager 需要多少 Zookeper 实例?
  4. If I should install Zookeeper dedicated to Kafka-Manager, is it okey to install it in the same machine which Kafka-Manager installed or should I create another Zookeeper cluster in different machines?如果我应该安装专用于 Kafka-Manager 的 Zookeeper,是否可以将其安装在 Kafka-Manager 安装的同一台机器上,或者我应该在不同的机器上创建另一个 Zookeeper 集群?

I wonder what is the best practice?我想知道最佳做法是什么?

Does Kafka-manager already contain Zookeeper when I download it?当我下载 Kafka-manager 时,它是否已经包含 Zookeeper?

No. It's just a web application.不,它只是一个网络应用程序。 You can use the Zookeeper that's used by Kafka, though不过,您可以使用 Kafka 使用的 Zookeeper

That should answer the rest of your question...那应该回答你的其余问题......

Its not an answer but a question - I downloaded apache kafka_2.13 and I found that it has zookeeper in it which I ran by using .\bin\windows\zookeeper-server-start.bat.\config\zookeeper.properties command.它不是一个答案,而是一个问题——我下载了 apache kafka_2.13,我发现它里面有 zookeeper,我使用.\bin\windows\zookeeper-server-start.bat.\config\zookeeper.properties命令运行它。 So is it ok to use this zookeeper or we should install zookeeper separately.那么使用这个zookeeper可以吗,或者我们应该单独安装zookeeper。 Please explain as I am very new to kafka.请解释一下,因为我对卡夫卡很陌生。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM