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

Document "Define a new schema specification" unclear for docker usage #140

Open
th0ger opened this issue Dec 14, 2023 · 0 comments
Open

Comments

@th0ger
Copy link

th0ger commented Dec 14, 2023

When running in kafa-connect-datagen in Docker and specifying "schema.filename": "/path/to/your_schema.avsc", using the "the absolute path" as documented in Define a new schema specification, I get the following error:

{"error_code":400,"message":"Connector configuration is invalid and contains the following 1 error(s):
Unable to find the schema file

First, the error is not searchable in github issues, because it was only pasted as a screenshot in #22 (comment) (@elabbassiwidad). (Hence repeating it here.)
Second, the solution is burried deep in the comments #22 (comment) (@C0urante):

You must copy the schema file onto the docker container you're running, at the path used for the schema.filename property in the connector config.

Example: With local schema file in $PWD/my_schema.avsc

datagen-config.json:
---
schema.filename": "/tmp/schemas/my_schema.avsc
docker-compose.yml:
---
  connect:
    image: localimage/kafka-connect-datagen:latest
    build:
      context: .
      dockerfile: Dockerfile
    ...
    volumes:
      - type: bind
        source: .
        target: /tmp/schemas

I suggest to clarify the README, since "the absolute path" is a quite misleading for docker users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant