Elasticsearch错误“引导检查失败";(绑定非环回地址) [英] Elasticsearch Error "bootstrap checks failed" (Binding non-loopback address)
问题描述
最近,在安装Elasticsearch 7.3.2之后,我发现绑定到localhost或127.0.0.1的服务器可以正常工作.
Recently, after installation of Elasticsearch 7.3.2, I found out that the server is working fine when bound to the localhost or 127.0.0.1.
但是我将其提供给外部使用,即在特定IP或0.0.0.0上,它引发了我的错误并停止了服务器:
But I made it available for external use, that is on particular IP or 0.0.0.0, it raised me error and stopped the server:
绑定或发布到非环回地址,强制执行引导检查[2019-09-19T18:21:43,962] [错误] [o.e.b.Bootstrap] [MARFEEN]节点验证异常[1]引导检查失败
bound or publishing to a non-loopback address, enforcing bootstrap checks [2019-09-19T18:21:43,962][ERROR][o.e.b.Bootstrap ] [MARFEEN] node validation exception [1] bootstrap checks failed
推荐答案
此解决方案无法获得任何答案,其中大多数与最大打开文件限制有关.但是,当我在elasticsearch.yml文件中启用配置属性 discovery.seed_hosts
时,此问题就解决了:
Could not get any answer on this solution, most of them were related to max opened file limits. But it was solved when I enabled a config property discovery.seed_hosts
in elasticsearch.yml file:
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
#
# Set a custom port for HTTP:
#
#http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["127.0.0.1"]
启用上述属性后,它在非环回主机上也可以正常工作.
After enabling the above property, it worked fine on non-loopback host also.
这篇关于Elasticsearch错误“引导检查失败";(绑定非环回地址)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!