Hi,
i am updated elasticsearch7.3.0 and update index template but i am getting below error.
Error :
[2019-09-08 11:55:34,692] ERROR WorkerSinkTask{id=elasticSearch-sink-3} Task threw an uncaught and unrecoverable exception. Task is being killed and will not recover until manually restarted. (org.apache.kafka.connect.runtime.WorkerSinkTask)
org.apache.kafka.connect.errors.ConnectException: Bulk request failed: [{"type":"illegal_argument_exception","reason":"Rejecting mapping update to [oc-events-acquire-2019.09.08] as the final mapping would have more than 1 type: [_doc, elasticSearch-sink]"}, {"type":"illegal_argument_exception","reason":"Rejecting mapping update to [oc-events-acquire-2019.09.08] as the final mapping would have more than 1 type: [_doc, elasticSearch-sink]"}, {"type":"illegal_argument_exception","reason":"Rejecting mapping update to [oc-events-acquire-2019.09.08] as the final mapping would have more than 1 type: [_doc, elasticSearch-sink]"}, {"type":"illegal_argument_exception","reason":"Rejecting mapping update to [oc-events-acquire-2019.09.08] as the final mapping would have more than 1 type: [_doc, elasticSearch-sink]"}, {"type":"illegal_argument_exception","reason":"Rejecting mapping update to [oc-events-acquire-2019.09.08] as the final mapping would have more than 1 type: [_doc, elasticSearch-sink]"}]
at io.confluent.connect.elasticsearch.bulk.BulkProcessor$BulkTask.execute(BulkProcessor.java:353)
at io.confluent.connect.elasticsearch.bulk.BulkProcessor$BulkTask.call(BulkProcessor.java:326)
at io.confluent.connect.elasticsearch.bulk.BulkProcessor$BulkTask.call(BulkProcessor.java:312)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:835)
[2019-09-08 11:55:34,692] WARN WorkerSinkTask{id=elasticSearch-sink-3} Offset commit failed during close (org.apache.kafka.connect.runtime.WorkerSinkTask)
[2019-09-08 11:55:34,692] ERROR WorkerSinkTask{id=elasticSearch-sink-3} Commit of offsets threw an unexpected exception for sequence number 1: null (org.apache.kafka.connect.runtime.WorkerSinkTask)
my index template:
"mappings": {
"properties": {
"AlertGroup": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"AlertKey": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"FirstOccurrence": {
"type": "date"
},
"Identifier": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"LastOccurrence": {
"type": "date"
},
"Manager": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"Node": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"NodeAlias": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"Severity": {
"type": "long"
},
"Summary": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
please help me.
Thanks,
gnanendra