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

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

问题描述

我正在尝试使用Flink 5.x Elasticsearch接收器连接器将数据插入到微型VM上托管的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.

一个处于开发模式的小型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 $ b起可用的设置来做到这一点。 $ b Discovery.type:单节点
https://www.elastic.co/guide/zh-CN/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节点上,我能够使用传输客户端从非localhost客户端进行连接,这以前是一个问题。

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-引导检查失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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