question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable schema generation

See original GitHub issue

Hello,

I have created my own AVRO schema to ingest my CSV data. I have registered my schema in the schema registry.

When I launch the connector I get the following error: Caused by: org.apache.kafka.common.errors.SerializationException: Error registering Avro schema: ["null",{"type":"record","name":"ConnectDefault","namespace":"io.confluent.connect.avro","fields":[{"name":"message","type":["null","string"],"default":null},{"name":"headers","type":["null",{"type":"array","items":["null","string"]}],"default":null}]}] connect | Caused by: io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException: Schema being registered is incompatible with an earlier schema for subject "connect-file-pulse-data-csv-00-value"; error code: 409 I know that I have to set the property auto.register.schemas to false but I don’t know how to do it with docker.

I am using the docker version (streamthoughts/kafka-connect-file-pulse) 1.6.3.

I have tried the following:

CONNECT_PRODUCER_AUTO_REGISTER_SCHEMAS: 'false'
CONNECT_PRODUCER_USE_LATEST_VERSION: 'true'

or

CONNECT_AUTO_REGISTER_SCHEMAS: 'false'
CONNECT_USE_LATEST_VERSION: 'true'

Nothing is working.

How can I disable the schema generation ?

Thanks in advance.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
julienBaleizaocommented, Apr 26, 2021

I just see that the property CONNECT_VALUE_CONVERTER_LATEST_COMPATIBILITY_STRICT is not working.

@fhussonnois Do you know how to set the property latest.compatibility.strict ?

0reactions
stale[bot]commented, Nov 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

hibernate - Disable table recreation in Spring Boot application
If you are using spring boot, you could do it by configuration over the config file. Hibernate has all this possibilities: validate (validate ......
Read more >
Is it possible to disable auto schema registration... - 308778
Hello, In Cloudera 7.1.3 schema-registry Service, the schema is automatically generated (if it doesn't exist) - 308778.
Read more >
Process engine database auto-creation disabling
Hi. I want to disable database auto-creation, because i need to create SQL migration baseline script manually using changesets.
Read more >
59. Database initialization - Spring
59.1 Initialize a database using JPA. JPA has features for DDL generation, and these can be set up to run on startup against...
Read more >
How to prevent the Hibernate schema from being generated ...
Just set the hibernate.hbm2ddl.auto property to none instead of update since you don't need the DB schema to be generated for you.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found