问题描述
我希望将我的ES版本从2.3更新为5.0.0-alpha4,以便能够使用Ingest节点并将Logstash从问题中删除。但似乎ES 5.x版本不会启动没有我将vm.max_map_count设置为262144.我不想设置该值。我可以默认值65530.任何人都可以指导我如何获得ES 5。 x开始没有篡改内存设置。我无法访问我希望安装ES的主机上的root用户。
错误:
java.lang.UnsupportedOperationException:seccomp不可用:CONFIG_SECCOMP未编译为内核,CONFIG_SECCOMP和CONFIG_SECCOMP_FILTER需要
在org.elasticsearch.bootstrap.Seccomp.linuxImpl(Seccomp.java:347)
在org.elasticsearch.bootstrap.Seccomp.init(Seccomp.java:616)
[ 2016-08-08 07:49:55,436] [INFO] [node] [data-cum-ingest-node] initializing ...
[2016-08-08 07:49:56,048] [INFO] [插件] [data-cum-ingest-node]模块[percolator,lang-mustache,lang-painless,reindex,aggs-matrix-stats,lang-expression,ingest-common,lang-groovy],plugins []
[2016-08-08 07:49:56,601] [INFO] [env] [data-cum-ingest-node]堆大小[7.9gb],压缩的普通对象指针[true]
[ -08 07:49:57,582] [INFO] [node] [data-cum-ingest-node]已初始化
[2016-08-08 07:49:57,582] [INFO] [node] [data-cum -estest-node] starting ...
[2016-08-08 07:49:57,635] [错误] [bootstrap] [data-cum-ingest-node] Excepti on
java.lang.RuntimeException:bootstrap检查失败
最大虚拟内存区域vm.max_map_count [65530]可能太低,在org.elasticsearch.bootstrap上增加到至少[262144]
。 BootstrapCheck.check(BootstrapCheck.java:125)
在org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:85)
在org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java: 65)
在org.elasticsearch.bootstrap.Bootstrap $ 5.validateNodeBeforeAcceptingRequests(Bootstrap.java:178)
在org.elasticsearch.node.Node.start(Node.java:373)
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:193)
在org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:252)
在org.elasticsearch.bootstrap.Elasticsearch。 init(Elasticsearch.java:96)
在org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:91)
在org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
在org.elasticsearch.cli.Command.mainWithoutErrorH andling(Command.java:91)
在org.elasticsearch.cli.Command.main(Command.java:53)
在org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:70)
在org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:63)
禁止:java.lang.IllegalStateException:最大虚拟内存区域vm.max_map_count [65530]可能太低,增加到至少[262144]
在java.util.stream.ReferencePipeline $ 3 $ 1.accept(ReferencePipeline.java:193)
在java.util.ArrayList $ ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
在java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
在java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
在java.util.stream .ForEachOps $ ForEachOp.evaluateSequential(ForEachOps.java:151)
在java.util.stream.ForEachOps $ ForEachOp $ OfRef.evaluateSequential(ForEachOps.java:174)
在java.util.stream.AbstractPipeline .evaluate(AbstractPipeline.java:234)
在java.util.stream。 ReferencePipeline.forEach(ReferencePipeline.java:418)
在org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:126)
从ES 5开始,有一些(仅在Linux上),这需要262144内存 - 映射区域或者它将拒绝启动。
请注意,无论环境ES运行(dev或prod),此检查都将被执行
I wish to update my ES version from 2.3 to 5.0.0-alpha4 to be able to use Ingest nodes and remove Logstash out of the question. But it seems ES 5.x version won't start without me setting vm.max_map_count to 262144. I don't want to set that value..I am okay with default value 65530. Can anyone guide me how to get ES 5.x started without tampering memory settings at all. I don't have access to root user on the host on which i wish to install ES.
Error:
java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
at org.elasticsearch.bootstrap.Seccomp.linuxImpl(Seccomp.java:347)
at org.elasticsearch.bootstrap.Seccomp.init(Seccomp.java:616)
[2016-08-08 07:49:55,436][INFO ][node ] [data-cum-ingest-node] initializing ...
[2016-08-08 07:49:56,048][INFO ][plugins ] [data-cum-ingest-node] modules [percolator, lang-mustache, lang-painless, reindex, aggs-matrix-stats, lang-expression, ingest-common, lang-groovy], plugins []
[2016-08-08 07:49:56,601][INFO ][env ] [data-cum-ingest-node] heap size [7.9gb], compressed ordinary object pointers [true]
[2016-08-08 07:49:57,582][INFO ][node ] [data-cum-ingest-node] initialized
[2016-08-08 07:49:57,582][INFO ][node ] [data-cum-ingest-node] starting ...
[2016-08-08 07:49:57,635][ERROR][bootstrap ] [data-cum-ingest-node] Exception
java.lang.RuntimeException: bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:125)
at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:85)
at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:65)
at org.elasticsearch.bootstrap.Bootstrap$5.validateNodeBeforeAcceptingRequests(Bootstrap.java:178)
at org.elasticsearch.node.Node.start(Node.java:373)
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:193)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:252)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:96)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:91)
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:91)
at org.elasticsearch.cli.Command.main(Command.java:53)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:70)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:63)
Suppressed: java.lang.IllegalStateException: max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:126)
Starting with ES 5, there are some bootstrap checks that are enforced.
One of those checks is the Maximum map count check (on Linux only), which requires 262144 memory-mapped areas or it will refuse to start.
Note that this check is enforced whatever the environment ES runs in (dev or prod)
这篇关于ElasticSearch 5.0.0-aplha4将不会启动而不设置vm.max_map_count的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!