我已经设置了 Kafka 集群并安装confluent-hub
在一个EC2
实例上。我已经下载了confluent-hub
tar 文件,解压缩并将二进制文件放入/usr/local/bin
.
当我现在尝试安装任何连接器时,我得到了 ClassNotFoundException。
[ec2-user@ip-172-31-88-110 bin]$ confluent-hub install confluentinc/kafka-connect-jdb c:latest --component-dir /opt/connectors --worker-configs /etc/kafka/connect.properties
/usr/local/bin/confluent-hub: line 13: cd: /usr/local/bin/../share/java: No such file or directory
Error: Could not find or load main class io.confluent.connect.hub.cli.ConfluentHubClient
Caused by: java.lang.ClassNotFoundException: io.confluent.connect.hub.cli.ConfluentHubClient
我哪里错了?