无需安装 Confluent Platform 即可使用 Confluent Hub [英] Use Confluent Hub without Confluent Platform installation

查看:26
本文介绍了无需安装 Confluent Platform 即可使用 Confluent Hub的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am using these installation instructions for getting confluent hub client https://docs.confluent.io/current/connect/managing/confluent-hub/client.html

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

But, when I get to the line to install the kafka-connect-elasticsearch connector

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

我继续收到此错误消息:

I continue to get this error message:

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

Error: Invalid options or arguments

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

I have ElasticSearch and Kafka all installed via Homebrew on my Mac

推荐答案

明确指定 --component-dir 和 --worker-configs

Specify --component-dir and --worker-configs explicitly

您必须传递两个选项以包含 Kafka Connect 的 plugin.path 设置的 Homebrew 位置(Confluent Hub 将安装到的位置)和您的 connect-distributed.properties(这样如果插件路径还没有,就可以设置它)

You'll have to pass both options to include the Homebrew location of Kafka Connect's plugin.path setting (where Confluent Hub would install to) and your connect-distributed.properties (so that the plugin path can be setup if it isn't already)

例如

confluent-hub install <name> \
   --component-dir /opt/connectors \
   --worker-configs /etc/kafka/connect-distributed.properties

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

This command should download and extract the connector zip into /opt/connectors and modify the connect-distributed.properties file to include that path in its plugin.path property

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

这篇关于无需安装 Confluent Platform 即可使用 Confluent Hub的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆