我正在尝试使用Flink 5.x Elasticsearch接收器连接器将数据插入到托管在小型VM上的ES 5.2.1实例中。
由于这是一个处于开发模式的小型VM,我无法让它在不通过引导检查的情况下在9300上启动以接受TransportClient远程客户端连接。
[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
我已经尝试了以下设置,但就是不能让它启动(http客户端在9200上工作良好)
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上,仅用于开发目的,而我没有权限更改ex。此框上的文件描述符限制。
发布于 2017-09-04 07:18:17
我可以通过使用从ES 5.2 discovery.type: single-node (https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)开始提供的以下设置来实现这一点
一旦我使用该设置启动了ES节点,我就能够从非本地主机客户端使用传输客户端进行连接,这在以前是个问题。
发布于 2017-04-04 20:55:38
尝试这样配置您的elasticsearch.yml文件:
network.host: 0.0.0.0 http.port: 9200 transport.host: localhost transport.tcp.port: 9300
发布于 2019-05-26 21:55:52
我一直在谷歌上搜索并应用不同的建议,但我认为这是一般的解决方案:
使用以下命令检查进程正在运行(尽管时间很短)时的实际限制:
cat /proc/<pid>/limits
您将发现类似于以下内容的行:
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
<truncated>
然后根据运行器或容器(在我的例子中是supervisord的minfds值),您可以取消实际的限制配置。
https://stackoverflow.com/questions/42300463
复制相似问题