无法将elasticsearch传输服务绑定到外部接口

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了无法将elasticsearch传输服务绑定到外部接口相关的知识,希望对你有一定的参考价值。

我正在尝试使用2个虚拟机设置elasticsearch集群。我无法使用外部接口配置群集传输服务。我可以使用localhost:9300作为传输服务,但我不能使用localhost URL加入群集。使用外部接口名称/ IP配置群集时出现错误。

[2017-12-22T06:58:56,979][INFO ][o.e.t.TransportService   ] [node-1] publish_address {10.0.1.33:9300}, bound_addresses {10.0.1.33:9300}
[2017-12-22T06:58:56,997][INFO ][o.e.b.BootstrapChecks    ] [node-1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2017-12-22T06:58:57,002][ERROR][o.e.b.Bootstrap          ] [node-1] node validation exception
[2] bootstrap checks failed

我的配置:

cluster.name: ProductionCluster
node.name: node-1
network.host: 10.0.1.33
http.port: 9200
discovery.zen.ping.unicast.hosts: ["10.0.1.33","10.0.1.34"]
bootstrap.system_call_filter: false
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch

Elasticsearch版本:6.1

答案

如果配置外部接口,则认为您处于“生产模式”和bootstrap checks are automatically enforced。你能说明哪些引导程序检查失败了吗?

错误提到max number of threads [2048] for user [elasticsearch] is too low和你需要increase to at least [4096]

你可以在这里找到如何做到:https://www.elastic.co/guide/en/elasticsearch/reference/current/max-number-threads-check.html

以上是关于无法将elasticsearch传输服务绑定到外部接口的主要内容,如果未能解决你的问题,请参考以下文章

如何将 elasticsearch 数据从一个数据目录传输到另一个数据目录?

如何将弹性数据从一台服务器传输到另一台服务器

如何将本地elasticsearch实例复制/复制/同步/备份到远程elasticsearch实例

使用 SSIS 和 CData 从 Sql Server 到 Elasticsearch 的数据传输

远程服务拒绝权限 onBind

基于事件驱动架构构建微服务第13部分:使用来自Apache KAFKA的事件并将投影流传输到ElasticSearch...