org.apache.kafka.connect.errors.DataException

STRUCTis not supported as the document id.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web20

  • STRUCTis not supported as the document id.
  • STRUCT is not supported as the document id.
  • via Google Groups by Unmesh Joshi, 1 year ago
    Avro union types containing null are only supported as optional fields and should have exactly two entries.
  • Stack trace

    • org.apache.kafka.connect.errors.DataException: STRUCTis not supported as the document id. at io.confluent.connect.elasticsearch.DataConverter.convertKey(DataConverter.java:80) at io.confluent.connect.elasticsearch.DataConverter.convertRecord(DataConverter.java:134) at io.confluent.connect.elasticsearch.ElasticsearchWriter.write(ElasticsearchWriter.java:308) at io.confluent.connect.elasticsearch.ElasticsearchSinkTask.put(ElasticsearchSinkTask.java:129) at org.apache.kafka.connect.runtime.WorkerSinkTask.deliverMessages(WorkerSinkTask.java:381) at org.apache.kafka.connect.runtime.WorkerSinkTask.poll(WorkerSinkTask.java:227) at org.apache.kafka.connect.runtime.WorkerSinkTask.iteration(WorkerSinkTask.java:170) at org.apache.kafka.connect.runtime.WorkerSinkTask.execute(WorkerSinkTask.java:142) at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:140) at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:175) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.