filebeat+kafka+elasticsearch使用时遇到的问题及解决方案(持续更新)

kafka:

1.Connection to node -1 could not be established. Broker may not be available.

(1)因为配置文件中的端口跟请求的端口不同。

比如一个consumer请求,在consumer.properties配置文件中设定的是9092端口,在请求的时候写成了其他端口,又或者是localhost没写对等。

(2)health status index uuid pri rep docs.count docs.deleted store.size pri.store.size

这表明我们还没有索引在集群中。

(3)

{
  "error" : "Content-Type header [application/x-www-form-urlencoded] is not supported",
  "status" : 406
}

加上 -H "Content-Type: application/json"

(4)

部分资料直接复制网络中其他文章,仅供个人参考学习
原文地址:https://www.cnblogs.com/decq/p/11992223.html