ably / kafka-connect-ably

Kafka Connector for publishing data from Kafka to Ably
https://ably.com/solutions/extend-kafka-to-the-edge
Apache License 2.0
11 stars 6 forks source link

Error when running in standalone mode #168

Open khawerrind opened 11 months ago

khawerrind commented 11 months ago

Getting the following error when running the connector in standalone mode locally:

2023-12-13 12:02:08 Caused by: org.apache.kafka.connect.runtime.rest.errors.BadRequestException: Connector config {java_base_dir=$( cd -P "$base_dir/../share/java" && pwd ), fi=, shift=, for=library in "kafka" "confluent-common" "kafka-serde-tools" "monitoring-interceptors"; do, echo="USAGE: $0 [-daemon] connect-standalone.properties", dir="$java_base_dir/$library", -daemon)=, else=# Fallback to normal default, LOG4J_CONFIG_ZIP_INSTALL="$base_dir/../etc/kafka/connect-log4j.properties", COMMAND=$1, if=[ "x$KAFKA_HEAP_OPTS" = "x" ]; then, export=CLASSPATH, case=$COMMAND in, ;;=, LOG4J_CONFIG_NORMAL_INSTALL="/etc/kafka/connect-log4j.properties", KAFKA_LOG4J_OPTS="-Dlog4j.configuration=file:$base_dir/../config/connect-log4j.properties", then=, elif=[ -e "${LOG4J_CONFIG_ZIP_INSTALL}" ]; then # Simple zip file layout, CLASSPATH="$classpath_prefix$dir/*", done=, exit=1, base_dir=$(dirname $0), classpath_prefix="", EXTRA_ARGS="-daemon "$EXTRA_ARGS, exec=$(dirname $0)/kafka-run-class $EXTRA_ARGS org.apache.kafka.connect.cli.ConnectStandalone "$@", *)=, esac=} contains no connector type

Do you have any idea how to resolve this?

┆Issue is synchronized with this Jira Task by Unito

sync-by-unito[bot] commented 11 months ago

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3996

mattheworiordan commented 11 months ago

@khawerrind apologies we missed this issue. I will get someone in the team to reply ASAP.

ttypic commented 11 months ago

Hi @khawerrind!

The error message you shared indicates that the connector.class property is missing in the properties file. If you are following the example provided in the README.md file, it suggests that you haven't created the docker-compose-connector.properties file as specified in the configuration section.

To resolve this issue, please follow these steps:

  1. Create a docker-compose-connector.properties file in the /config directory.
  2. You can use the example file provided as a template.
  3. Ensure that you copy the example file content into the new docker-compose-connector.properties file.
  4. Don't forget to provide your Ably key in the appropriate field within the docker-compose-connector.properties file.

By completing these steps, you should address the error, and your configuration should work as intended.