我正在尝试将数据从Kafka传递到Elasticsearch,然后传递给Kibana。我正在使用此链接中提到的kafka-river插件:Elasticsearch-river-kafka plugin
在启动Kafka Zookeeper,服务器和制作人之后,我将数据作为{“test”:“one”}
然后启动elasticsearch。我在Kafka中收到以下错误:
[2016-02-04 00:05:00,094] ERROR Closing socket for /192.168.1.9 because of error (kafka.network.Processor)
java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:197)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:375)
at kafka.utils.Utils$.read(Utils.scala:380)
at kafka.network.BoundedByteBufferReceive.readFrom(BoundedByteBufferReceive.scala:54)
at kafka.network.Processor.read(SocketServer.scala:444)
at kafka.network.Processor.run(SocketServer.scala:340)
at java.lang.Thread.run(Thread.java:745)
并且,在elasticsearch中出现以下错误:
org.codehaus.jackson.JsonParseException: Unexpected character ('S' (code 83)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
另外,我在elasticsearch日志中看到了这一点:
[2016-02-04 00:14:31,340][WARN ][river.routing ] [ISAAC] no river _meta document found after 5 attempts
知道我做错了什么吗?请帮忙。感谢。
答案 0 :(得分:0)
河流的概念在弹性搜索中被弃用,它增加了性能问题。为什么不考虑使用LogStash Kafka插件进行同样的操作。您可以在https://www.elastic.co/blog/logstash-kafka-intro
了解更多相关信息