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

No handler for type [string] declared on field [after]"}] #160

Closed
vlad0337187 opened this issue Jan 2, 2018 · 3 comments
Closed

No handler for type [string] declared on field [after]"}] #160

vlad0337187 opened this issue Jan 2, 2018 · 3 comments

Comments

@vlad0337187
Copy link

Hello.
If in topic, which this connector reads, there are some records with type: string, it throws an error:

No handler for type [string] declared on field [after]"}]

(because Elasticsearch 6 dropped support for 'string')

If to rename it into 'text' - it'll throw such error:

org.apache.kafka.connect.errors.DataException: Unknown schema type: text

I'm using JSON serializer:
CONNECT_KEY_CONVERTER: org.apache.kafka.connect.storage.StringConverter
CONNECT_VALUE_CONVERTER: org.apache.kafka.connect.json.JsonConverter

If to use AVRO serializer - all would be normal, but than I would have issues while decoding it in Javascript.

Is there any way to make it sending messages to elasticsearch?
Thanks.

@synhershko
Copy link

Please see #154 (comment)

@vlad0337187
Copy link
Author

@synhershko , understood, thank you.

@rayokota
Copy link
Member

This is fixed with #169

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

3 participants