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

[BUG] Action/metadata line [1] contains an unknown parameter [_type]\"}],\"type\":\"illegal_argument_exception #5276

Closed
wannajob opened this issue Nov 16, 2022 · 1 comment
Labels
backwards-compatibility >breaking Identifies a breaking change. Clients Clients within the Core repository such as High level Rest client and low level client non-issue bugs / unexpected behaviors that end up non issues; audit trail simple changes that aren't issues wontfix This will not be worked on

Comments

@wannajob
Copy link

wannajob commented Nov 16, 2022

The elastic sink connector shows this error when opensearch upgraded to 2.2.0 from 1.2.4

org.apache.kafka.connect.errors.ConnectException: Exiting WorkerSinkTask due to unrecoverable exception.\n\tat org.apache.kafka.connect.runtime.WorkerSinkTask.deliverMessages(WorkerSinkTask.java:561)\n\tat org.apache.kafka.connect.runtime.WorkerSinkTask.poll(WorkerSinkTask.java:322)\n\tat org.apache.kafka.connect.runtime.WorkerSinkTask.iteration(WorkerSinkTask.java:224)\n\tat org.apache.kafka.connect.runtime.WorkerSinkTask.execute(WorkerSinkTask.java:192)\n\tat org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:177)\n\tat org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:227)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: org.apache.kafka.connect.errors.ConnectException: Bulk request failed: {"root_cause":[{"type":"illegal_argument_exception","reason":"Action/metadata line [1] contains an unknown parameter [_type]"}],"type":"illegal_argument_exception","reason":"Action/metadata line [1] contains an unknown parameter [_type]"}\n\tat io.confluent.connect.elasticsearch.bulk.BulkProcessor$BulkTask.handleMalformedDoc(BulkProcessor.java:479)\n\tat io.confluent.connect.elasticsearch.bulk.BulkProcessor$BulkTask.execute(BulkProcessor.java:433)\n\tat io.confluent.connect.elasticsearch.bulk.BulkProcessor$BulkTask.call(BulkProcessor.java:389)\n\tat io.confluent.connect.elasticsearch.bulk.BulkProcessor$BulkTask.call(BulkProcessor.java:375)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\n\tat io.confluent.connect.elasticsearch.bulk.BulkProcessor$BulkProcessorThread.run(BulkProcessor.java:370)\n

To Reproduce
Steps to reproduce the behavior:

  1. Version : OpenSearch 2.2.0
  2. Version: Confluent ElasticsearchSinkConnector 5.4.2
  3. Upgrade OpenSearch from 1.2.4 to 2.2.0

is this related ?
#2979 (comment)

@wannajob wannajob added bug Something isn't working untriaged labels Nov 16, 2022
@kartg
Copy link
Member

kartg commented Nov 17, 2022

hi @wannajob! You're correct - this is happening because mapping types have been removed since OpenSearch 2.0

This isn't a bug within OpenSearch but there's certainly a compatibility issue with the Confluent connector. I didn't see any details on OpenSearch compatibility from their docs, so you may want to reach out to them to confirm.

Alternatively, you could try the Aiven fork - https://github.com/aiven/opensearch-connector-for-apache-kafka

I'm going to close out this issue. Please feel free to reopen if you have follow-up questions.

@kartg kartg closed this as completed Nov 17, 2022
@kartg kartg added wontfix This will not be worked on non-issue bugs / unexpected behaviors that end up non issues; audit trail simple changes that aren't issues backwards-compatibility >breaking Identifies a breaking change. Clients Clients within the Core repository such as High level Rest client and low level client and removed bug Something isn't working untriaged labels Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backwards-compatibility >breaking Identifies a breaking change. Clients Clients within the Core repository such as High level Rest client and low level client non-issue bugs / unexpected behaviors that end up non issues; audit trail simple changes that aren't issues wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants