1

当我尝试运行日志聚合时,我发现 elasticsearch 生成以下错误:

[2018-02-04T13:44:04,259][INFO ][o.e.b.BootstrapChecks ] [elasticsearch-logging-0] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: [1] bootstrap checks failed
[1]: max file descriptors [1024] for elasticsearch process is too low, increase to at least [65536]
[2018-02-04T13:44:04,268][INFO ][o.e.n.Node ] [elasticsearch-logging-0] stopping ...
[2018-02-04T13:44:04,486][INFO ][o.e.n.Node ] [elasticsearch-logging-0] stopped
[2018-02-04T13:44:04,486][INFO ][o.e.n.Node ] [elasticsearch-logging-0] closing ...
[2018-02-04T13:44:04,561][INFO ][o.e.n.Node ] [elasticsearch-logging-0] closed
[2018-02-04T13:44:04,564][INFO ][o.e.x.m.j.p.NativeController] Native controller process has stopped - no new native processes can be started

顺便说一句,我在 Ubuntu 机器 16.04 上使用 cri-containerd 在 minions 上运行 kubernetes 集群 v1.8.0,在 master 上运行 1.9.0。

任何帮助将不胜感激。

4

1 回答 1

0

这主要发生在您将弹性搜索作为单个节点运行时

添加以下 elasticsearch.yml 以摆脱这个

discovery.type to single-node  

并注释掉您的配置是否有以下内容

#cluster.initial_master_nodes: ["node-1", "node-2"]

希望这有帮助。

于 2020-01-02T12:51:10.057 回答