欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kerne

程序员文章站 2022-06-17 08:24:40
...
[2020-02-27T03:27:52,316][WARN ][o.e.b.JNANatives         ] unable to install syscall filter: 
java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
	at org.elasticsearch.bootstrap.SystemCallFilter.linuxImpl(SystemCallFilter.java:341) ~[elasticsearch-6.4.3.jar:6.4.3]
	at org.elasticsearch.bootstrap.SystemCallFilter.init(SystemCallFilter.java:616) ~[elasticsearch-6.4.3.jar:6.4.3]
	at org.elasticsearch.bootstrap.JNANatives.tryInstallSystemCallFilter(JNANatives.java:258) [elasticsearch-6.4.3.jar:6.4.3]
	at org.elasticsearch.bootstrap.Natives.tryInstallSystemCallFilter(Natives.java:113) [elasticsearch-6.4.3.jar:6.4.3]
	at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:109) [elasticsearch-6.4.3.jar:6.4.3]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:171) [elasticsearch-6.4.3.jar:6.4.3]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) [elasticsearch-6.4.3.jar:6.4.3]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) [elasticsearch-6.4.3.jar:6.4.3]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) [elasticsearch-6.4.3.jar:6.4.3]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.4.3.jar:6.4.3]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.4.3.jar:6.4.3]
	at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.4.3.jar:6.4.3]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.4.3.jar:6.4.3]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) [elasticsearch-6.4.3.jar:6.4.3]
[2020-02-27T03:27:54,080][INFO ][o.e.n.Node               ] [] initializing ...
[2020-02-27T03:27:54,424][INFO ][o.e.e.NodeEnvironment    ] [Om_4iTR] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [8.5gb], net total_space [17.1gb], types [rootfs]
[2020-02-27T03:27:54,424][INFO ][o.e.e.NodeEnvironment    ] [Om_4iTR] heap size [1015.6mb], compressed ordinary object pointers [true]
[2020-02-27T03:27:54,426][INFO ][o.e.n.Node               ] [Om_4iTR] node name derived from node ID [Om_4iTRUTki6eblY8PH4yQ]; set [node.name] to override
[2020-02-27T03:27:54,427][INFO ][o.e.n.Node               ] [Om_4iTR] version[6.4.3], pid[2961], build[default/tar/fe40335/2018-10-30T23:17:19.084789Z], OS[Linux/2.6.32-642.el6.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_144/25.144-b01]
[2020-02-27T03:27:54,427][INFO ][o.e.n.Node               ] [Om_4iTR] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch.VeWsJWfj, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Des.path.home=/opt/modules/elasticsearch-6.4.3, -Des.path.conf=/opt/modules/elasticsearch-6.4.3/config, -Des.distribution.flavor=default, -Des.distribution.type=tar]
[2020-02-27T03:28:00,357][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [aggs-matrix-stats]
[2020-02-27T03:28:00,357][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [analysis-common]
[2020-02-27T03:28:00,357][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [ingest-common]
[2020-02-27T03:28:00,357][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [lang-expression]
[2020-02-27T03:28:00,357][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [lang-mustache]
[2020-02-27T03:28:00,358][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [lang-painless]
[2020-02-27T03:28:00,359][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [mapper-extras]
[2020-02-27T03:28:00,359][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [parent-join]
[2020-02-27T03:28:00,359][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [percolator]
[2020-02-27T03:28:00,359][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [rank-eval]
[2020-02-27T03:28:00,359][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [reindex]
[2020-02-27T03:28:00,359][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [repository-url]
[2020-02-27T03:28:00,359][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [transport-netty4]
[2020-02-27T03:28:00,359][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [tribe]
[2020-02-27T03:28:00,359][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [x-pack-core]
[2020-02-27T03:28:00,360][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [x-pack-deprecation]
[2020-02-27T03:28:00,360][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [x-pack-graph]
[2020-02-27T03:28:00,360][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [x-pack-logstash]
[2020-02-27T03:28:00,360][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [x-pack-ml]
[2020-02-27T03:28:00,360][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [x-pack-monitoring]
[2020-02-27T03:28:00,361][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [x-pack-rollup]
[2020-02-27T03:28:00,361][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [x-pack-security]
[2020-02-27T03:28:00,361][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [x-pack-sql]
[2020-02-27T03:28:00,361][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [x-pack-upgrade]
[2020-02-27T03:28:00,361][INFO ][o.e.p.PluginsService     ] [Om_4iTR] loaded module [x-pack-watcher]
[2020-02-27T03:28:00,362][INFO ][o.e.p.PluginsService     ] [Om_4iTR] no plugins loaded
[2020-02-27T03:28:10,912][INFO ][o.e.x.s.a.s.FileRolesStore] [Om_4iTR] parsed [0] roles from file [/opt/modules/elasticsearch-6.4.3/config/roles.yml]
[2020-02-27T03:28:13,019][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/3011] [[email protected]] controller (64 bit): Version 6.4.3 (Build 7a0781676dd492) Copyright (c) 2018 Elasticsearch BV
[2020-02-27T03:28:14,485][DEBUG][o.e.a.ActionModule       ] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2020-02-27T03:28:15,069][INFO ][o.e.d.DiscoveryModule    ] [Om_4iTR] using discovery type [zen]
[2020-02-27T03:28:16,626][INFO ][o.e.n.Node               ] [Om_4iTR] initialized
[2020-02-27T03:28:16,626][INFO ][o.e.n.Node               ] [Om_4iTR] starting ...
[2020-02-27T03:28:17,212][INFO ][o.e.t.TransportService   ] [Om_4iTR] publish_address {192.168.184.129:9300}, bound_addresses {192.168.184.129:9300}
[2020-02-27T03:28:17,249][INFO ][o.e.b.BootstrapChecks    ] [Om_4iTR] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [4] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max number of threads [1024] for user [malin] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[4]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
[2020-02-27T03:28:17,328][INFO ][o.e.n.Node               ] [Om_4iTR] stopping ...
[2020-02-27T03:28:17,350][INFO ][o.e.n.Node               ] [Om_4iTR] stopped
[2020-02-27T03:28:17,350][INFO ][o.e.n.Node               ] [Om_4iTR] closing ...
[2020-02-27T03:28:17,365][INFO ][o.e.n.Node               ] [Om_4iTR] closed
[2020-02-27T03:28:17,367][INFO ][o.e.x.m.j.p.NativeController] Native controller process has stopped - no new native processes can be started

解决办法:

原因:  因为Centos6不支持SecComp,而ES默认bootstrap.system_call_filter为true进行检测,所以导致检测失败,失败后直接导致ES不能启动解决:修改elasticsearch.yml 添加一下内容 :

bootstrap.memory_lock: false

bootstrap.system_call_filter: false
 

相关标签: 问题总结