无需安装 Confluent Platform 即可使用 Confluent Hub

den*_*icz 9 apache-kafka apache-kafka-connect confluent-platform

我正在使用这些安装说明获取融合中心客户端https://docs.confluent.io/current/connect/managing/confluent-hub/client.html

但是,当我开始安装 kafka-connect-elasticsearch 连接器时

confluent-hub install confluentinc/kafka-connect-elasticsearch:latest

我继续收到此错误消息:

Unable to detect Confluent Platform installation. Specify --component-dir and --worker-configs explicitly.

Error: Invalid options or arguments
Run Code Online (Sandbox Code Playgroud)

我在 Mac 上通过 Homebrew 安装了 ElasticSearch 和 Kafka

cri*_*007 13

显式指定 --component-dir 和 --worker-configs

您必须传递这两个选项以包含 Kafka Connectplugin.path设置的 Homebrew 位置(Confluence Hub 将安装到的位置)和您的connect-distributed.properties(以便可以设置插件路径(如果尚未设置))

例如(在 Mac 上,之后brew install kafka

confluent-hub install <name> \
   --component-dir /usr/local/Cellar/kafka/plugins \
   --worker-configs /usr/local/etc/kafka/connect-distributed.properties
Run Code Online (Sandbox Code Playgroud)

此命令应下载连接器 zip 并将其解压缩到/usr/local/Cellar/kafka/plugins并修改connect-distributed.properties文件以在其文件中包含该路径plugin.path文件以在其属性

这是使用我构建的 Kafka Connect docker 映像的示例