Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running in standalone mode #168

Open
khawerrind opened this issue Dec 13, 2023 · 3 comments
Open

Error when running in standalone mode #168

khawerrind opened this issue Dec 13, 2023 · 3 comments
Labels
documentation Improvements or additions to public interface documentation (API reference or readme).

Comments

@khawerrind
Copy link

khawerrind commented Dec 13, 2023

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

Copy link

sync-by-unito bot commented Dec 13, 2023

➤ Automation for Jira commented:

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

@mattheworiordan
Copy link
Member

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

@mattheworiordan mattheworiordan added the bug Something isn't working. It's clear that this does need to be fixed. label Dec 21, 2023
@ttypic
Copy link
Contributor

ttypic commented Dec 21, 2023

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.

@ttypic ttypic added documentation Improvements or additions to public interface documentation (API reference or readme). and removed bug Something isn't working. It's clear that this does need to be fixed. labels Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to public interface documentation (API reference or readme).
Development

No branches or pull requests

3 participants