I have set up Kafka cluster and installed confluent-hub
on a EC2
instance. I have downloaded the confluent-hub
tar file, extracted and placed the binary inside /usr/local/bin
.
When I am now trying to install any connectors, I am getting the 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
Where am I going wrong?
The binary was present in
/usr/bin
. I deleted the file from that location and it started working.