首页 > 技术文章 > filebeat+kafka+elasticsearch使用时遇到的问题及解决方案(持续更新)

decq 2019-12-05 21:51 原文

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)

推荐阅读