elasticsearch 报错 ERROR: [2] bootstrap checks failed system call filters failed to install; check th

[2018-11-16T13:53:00,839][WARN ][o.e.b.JNANatives         ] unable to install syscall filter: 
java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in
	at org.elasticsearch.bootstrap.SystemCallFilter.linuxImpl(SystemCallFilter.java:328) ~[elasticsearch-6.4.2.jar:6.4.2]
	at org.elasticsearch.bootstrap.SystemCallFilter.init(SystemCallFilter.java:616) ~[elasticsearch-6.4.2.jar:6.4.2]
	at org.elasticsearch.bootstrap.JNANatives.tryInstallSystemCallFilter(JNANatives.java:258) [elasticsearch-6.4.2.jar:6.4.2]
	at org.elasticsearch.bootstrap.Natives.tryInstallSystemCallFilter(Natives.java:113) [elasticsearch-6.4.2.jar:6.4.2]
	at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:109) [elasticsearch-6.4.2.jar:6.4.2]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:171) [elasticsearch-6.4.2.jar:6.4.2]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) [elasticsearch-6.4.2.jar:6.4.2]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) [elasticsearch-6.4.2.jar:6.4.2]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) [elasticsearch-6.4.2.jar:6.4.2]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.4.2.jar:6.4.2]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.4.2.jar:6.4.2]
	at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.4.2.jar:6.4.2]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.4.2.jar:6.4.2]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) [elasticsearch-6.4.2.jar:6.4.2]
[2018-11-16T13:53:00,980][INFO ][o.e.n.Node               ] [hadoop8] initializing ...
[2018-11-16T13:53:01,031][INFO ][o.e.e.NodeEnvironment    ] [hadoop8] using [1] data paths, mounts [[/srv/BigData/solr/solrserver1 (/dev/sdx1)]], net usable_space [1.6tb], net total_space [1.6tb], types [ext4]
[2018-11-16T13:53:01,032][INFO ][o.e.e.NodeEnvironment    ] [hadoop8] heap size [15.6gb], compressed ordinary object pointers [true]
[2018-11-16T13:53:01,033][INFO ][o.e.n.Node               ] [hadoop8] node name [hadoop8], node ID [QBQO-4U4T5epP2ps4ejTWw]
[2018-11-16T13:53:01,033][INFO ][o.e.n.Node               ] [hadoop8] version[6.4.2], pid[78838], build[default/tar/04711c2/2018-09-26T13:34:09.098244Z], OS[Linux/2.6.32-504.el6.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_151/25.151-b12]
[2018-11-16T13:53:01,033][INFO ][o.e.n.Node               ] [hadoop8] JVM arguments [-Xms8g, -Xmx16g, -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.5xNryEyc, -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/elasticsearch-6.4.2, -Des.path.conf=/opt/elasticsearch-6.4.2/config, -Des.distribution.flavor=default, -Des.distribution.type=tar]
[2018-11-16T13:53:02,731][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [aggs-matrix-stats]
[2018-11-16T13:53:02,731][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [analysis-common]
[2018-11-16T13:53:02,731][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [ingest-common]
[2018-11-16T13:53:02,731][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [lang-expression]
[2018-11-16T13:53:02,732][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [lang-mustache]
[2018-11-16T13:53:02,732][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [lang-painless]
[2018-11-16T13:53:02,732][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [mapper-extras]
[2018-11-16T13:53:02,732][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [parent-join]
[2018-11-16T13:53:02,733][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [percolator]
[2018-11-16T13:53:02,733][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [rank-eval]
[2018-11-16T13:53:02,733][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [reindex]
[2018-11-16T13:53:02,733][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [repository-url]
[2018-11-16T13:53:02,733][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [transport-netty4]
[2018-11-16T13:53:02,733][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [tribe]
[2018-11-16T13:53:02,733][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [x-pack-core]
[2018-11-16T13:53:02,733][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [x-pack-deprecation]
[2018-11-16T13:53:02,734][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [x-pack-graph]
[2018-11-16T13:53:02,734][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [x-pack-logstash]
[2018-11-16T13:53:02,734][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [x-pack-ml]
[2018-11-16T13:53:02,734][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [x-pack-monitoring]
[2018-11-16T13:53:02,734][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [x-pack-rollup]
[2018-11-16T13:53:02,734][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [x-pack-security]
[2018-11-16T13:53:02,734][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [x-pack-sql]
[2018-11-16T13:53:02,734][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [x-pack-upgrade]
[2018-11-16T13:53:02,734][INFO ][o.e.p.PluginsService     ] [hadoop8] loaded module [x-pack-watcher]
[2018-11-16T13:53:02,735][INFO ][o.e.p.PluginsService     ] [hadoop8] no plugins loaded
[2018-11-16T13:53:05,951][INFO ][o.e.x.s.a.s.FileRolesStore] [hadoop8] parsed [0] roles from file [/opt/elasticsearch-6.4.2/config/roles.yml]
[2018-11-16T13:53:06,360][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/80513] [Main.cc@109] controller (64 bit): Version 6.4.2 (Build 660eefe6f2ea55) Copyright (c) 2018 Elasticsearch BV
[2018-11-16T13:53:06,726][DEBUG][o.e.a.ActionModule       ] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2018-11-16T13:53:07,109][INFO ][o.e.d.DiscoveryModule    ] [hadoop8] using discovery type [zen]
[2018-11-16T13:53:07,837][INFO ][o.e.n.Node               ] [hadoop8] initialized
[2018-11-16T13:53:07,837][INFO ][o.e.n.Node               ] [hadoop8] starting ...
[2018-11-16T13:53:07,984][INFO ][o.e.t.TransportService   ] [hadoop8] publish_address {192.168.212.108:9300}, bound_addresses {[::]:9300}
[2018-11-16T13:53:07,997][INFO ][o.e.b.BootstrapChecks    ] [hadoop8] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [2] bootstrap checks failed
[1]: initial heap size [8589934592] not equal to maximum heap size [17179869184]; this can cause resize pauses and prevents mlockall from locking the entire heap
[2]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
[2018-11-16T13:53:08,131][INFO ][o.e.n.Node               ] [hadoop8] stopping ...
[2018-11-16T13:53:08,173][INFO ][o.e.n.Node               ] [hadoop8] stopped
[2018-11-16T13:53:08,173][INFO ][o.e.n.Node               ] [hadoop8] closing ...
[2018-11-16T13:53:08,183][INFO ][o.e.n.Node               ] [hadoop8] closed
[2018-11-16T13:53:08,185][INFO ][o.e.x.m.j.p.NativeController] Native controller process has stopped - no new native processes can be started

错误1:[1]: initial heap size [8589934592] not equal to maximum heap size [17179869184]; this can cause resize pauses and prevents mlockall from locking the entire heap

ERROR: [2] bootstrap checks failed
[1]: initial heap size [8589934592] not equal to maximum heap size [17179869184]; this can cause resize pauses and prevents mlockall from locking the entire heap

解决办法:

cd $ES_HOME
vi config/jvm.options
#初始化内存和最大内存设置为一样大
#初始化内存
-Xms8g
#最大内存
-Xmx8g

错误2:[2]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

ERROR: [2] bootstrap checks failed
...
[2]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

解决办法:

cd $ES_HOME
vi config/elasticsearch.yml
#新增
bootstrap.system_call_filter: false

你可能感兴趣的:(大数据研发与架构设计)