elasticsearch startup error

requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled 
java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in
        at org.elasticsearch.bootstrap.Seccomp.linuxImpl(Seccomp.java:349) ~[elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.bootstrap.Seccomp.init(Seccomp.java:630) ~[elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.bootstrap.JNANatives.trySeccomp(JNANatives.java:215) [elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.bootstrap.Natives.trySeccomp(Natives.java:99) [elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:105) [elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:176) [elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:306) [elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) [elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96) [elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.cli.Command.main(Command.java:62) [elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) [elasticsearch-5.1.1.jar:5.1.1]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) [elasticsearch-5.1.1.jar:5.1.1]

The reason: a long list of reported errors, we do not panic, in fact, just a warning, mainly because you Linux version is too low caused.

Solution:
1, re-install the new version of the Linux system
2, the warning does not affect the use, can be ignored

ERROR: Checks failed The Bootstrap
max File descriptors [65535] Process for elasticsearch IS TOO Low, Increase to AT Least [65536]
reason: Unable to create a local file problem, users can create a maximum number of files that are too small
Solution: Switch to the root user, edit limits.conf add something like the following
vi /etc/security/limits.conf
* Soft nofile 65536
* Hard nofile 131072

max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
Reason: maximum virtual memory is too small
to resolve: modify the configuration to root the sysctl.conf
VI /etc/sysctl.conf
add the following configuration:
vm.max_map_count = 262144
and execute the command:
sysctl -p

 

 

Not after the entry into force of modifications /etc/security/limits.conf

Modify /etc/security/limits.d/90-nproc.conf cover disposed /etc/security/limits.conf

* Soft nofile 65536
* hard nofile 131072

Log into force

Guess you like

Origin www.cnblogs.com/gavinYang/p/11200006.html