Elasticsearch - Bootstrap 检查失败 [英] Elasticsearch - Bootstrap checks failing

查看:28
本文介绍了Elasticsearch - Bootstrap 检查失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Flink 5.x Elasticsearch sink 连接器将数据插入到托管在微型虚拟机上的 ES 5.2.1 实例.

I'm trying to use the Flink 5.x Elasticsearch sink connector to insert data to ES 5.2.1 instance hosted on a tiny VM.

由于这是一个处于开发模式的微型虚拟机,我无法让它在不通过引导程序检查的情况下启动以接受 9300 上的 TransportClient 远程客户端连接.

As this is a tiny VM in development mode, I cant get it to start up to accept TransportClient remote client connections on 9300 without failing the bootstrap checks.

[2017-02-17T09:02:48,581][INFO ][o.e.n.Node               ] [Z_fiBnl] starting ...
[2017-02-17T09:02:48,866][INFO ][o.e.t.TransportService   ] [Z_fiBnl] publish_address {xxxxxx:9300}, bound_addresses {127.0.0.1:9300}
[2017-02-17T09:02:48,878][INFO ][o.e.b.BootstrapChecks    ] [Z_fiBnl] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: bootstrap checks failed
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
max number of threads [1024] for user [xxx] is too low, increase to at least [2048]
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

我尝试了以下设置,但无法启动(9200 上的 http 客户端工作正常)

I've played around with the below settings but just cant get it to startup(http clients on 9200 work fine)

transport.publish_host: 0.0.0.0
transport.bind_host: 0.0.0.0
http.host: "xxx"
http.host: 169.117.72.167
network.host: 0.0.0.0
network.publish_host: 0.0.0.0

请注意,ES 仅出于开发目的在微型 VM 上运行,而我无权进行更改.此框的文件描述符限制.

Note that ES is running on a tiny VM just for dev purposes and I don't have access to change for ex. the file descriptor limits on this box.

推荐答案

我能够通过使用以下自 ES 5.2 以来可用的设置来做到这一点discovery.type:单节点(https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)

I was able to do this by using the below setting available since ES 5.2 discovery.type: single-node (https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)

一旦我使用该设置启动 ES 节点,我就能够使用传输客户端从非本地主机客户端进行连接,这在之前是个问题.

Once I brought up the ES node with that setting, I was able to connect using the transport client from a non localhost client which was a problem before.

这篇关于Elasticsearch - Bootstrap 检查失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆