【发布时间】:2018-02-06 17:22:09
【问题描述】:
我正在尝试使用 kafka connect elasticsearch 将数据从 apache kafka 生产者发送到弹性搜索
在 elasticsearch 中出现以下错误:
[2017-12-21T11:00:54,979][DEBUG][o.e.a.b.TransportShardBulkAction]
[pageviews7][0] failed to execute bulk item (index) BulkShardRequest
[[pageviews7][0]] containing [index {[pageviews7][kafkaconnect]
[pageviews7+0+0], source[{"key1":"value1"}]}]
org.elasticsearch.index.mapper.MapperParsingException: failed to find
type parsed [string] for [key1]
以下是我的 kafka-connect-elasticsearch 属性文件:
name=elasticsearch-sink
connector.class=
io.confluent.connect.elasticsearch.ElasticsearchSinkConnector
tasks.max=1
topics=pageviews7
key.ignore=true
connection.url=http://localhost:9200
type.name=kafkaconnect
schemas.enable=false
schema.ignore=true
【问题讨论】:
标签: elasticsearch apache-kafka apache-kafka-connect