docker安装Elasticsearch:7.6.0启动失败,ERROR: [1] bootstrap checks failed
2020-02-27 21:13 abce 阅读(5690) 评论(0) 编辑 收藏 举报报错信息:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. {"type": "server", "timestamp": "2020-02-27T12:46:16,489Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/mapper/rhel-root)]], net usable_space [170.3gb], net total_space [182.9gb], types [xfs]" } {"type": "server", "timestamp": "2020-02-27T12:46:16,497Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "heap size [990.7mb], compressed ordinary object pointers [true]" } {"type": "server", "timestamp": "2020-02-27T12:46:17,049Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "node name [0571dfad5be1], node ID [dlvAmTh1T-C5RZ77lt2E8Q], cluster name [docker-cluster]" } {"type": "server", "timestamp": "2020-02-27T12:46:17,059Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "version[7.6.0], pid[1], build[default/docker/7f634e9f44834fbc12724506cc1da681b0c3b1e3/2020-02-06T00:09:00.449973Z], OS[Linux/3.10.0-862.el7.x86_64/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/13.0.2/13.0.2+8]" } {"type": "server", "timestamp": "2020-02-27T12:46:17,059Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "JVM home [/usr/share/elasticsearch/jdk]" } {"type": "server", "timestamp": "2020-02-27T12:46:17,059Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -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, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=COMPAT, -Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.io.tmpdir=/tmp/elasticsearch-7019440013501045877, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Des.cgroups.hierarchy.override=/, -XX:MaxDirectMemorySize=536870912, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=docker, -Des.bundled_jdk=true]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,960Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [aggs-matrix-stats]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,961Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [analysis-common]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,961Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [flattened]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,961Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [frozen-indices]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,961Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [ingest-common]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,961Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [ingest-geoip]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,961Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [ingest-user-agent]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,962Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [lang-expression]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,962Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [lang-mustache]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,962Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [lang-painless]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,962Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [mapper-extras]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,962Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [parent-join]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,962Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [percolator]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,962Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [rank-eval]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,963Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [reindex]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,963Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [repository-url]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,963Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [search-business-rules]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,963Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [spatial]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,963Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [transform]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,963Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [transport-netty4]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,964Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [vectors]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,964Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-analytics]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,964Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-ccr]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,964Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-core]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,964Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-deprecation]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,964Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-enrich]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,965Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-graph]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,965Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-ilm]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,965Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-logstash]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,965Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-ml]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,965Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-monitoring]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,965Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-rollup]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,966Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-security]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,966Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-sql]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,966Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-voting-only-node]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,966Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "loaded module [x-pack-watcher]" } {"type": "server", "timestamp": "2020-02-27T12:46:18,967Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "no plugins loaded" } {"type": "server", "timestamp": "2020-02-27T12:46:22,694Z", "level": "INFO", "component": "o.e.x.s.a.s.FileRolesStore", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]" } {"type": "server", "timestamp": "2020-02-27T12:46:23,291Z", "level": "INFO", "component": "o.e.x.m.p.l.CppLogMessageHandler", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "[controller/111] [Main.cc@110] controller (64 bit): Version 7.6.0 (Build 1c8cca13fa9631) Copyright (c) 2020 Elasticsearch BV" } {"type": "server", "timestamp": "2020-02-27T12:46:23,825Z", "level": "DEBUG", "component": "o.e.a.ActionModule", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "Using REST wrapper from plugin org.elasticsearch.xpack.security.Security" } {"type": "server", "timestamp": "2020-02-27T12:46:23,953Z", "level": "INFO", "component": "o.e.d.DiscoveryModule", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "using discovery type [zen] and seed hosts providers [settings]" } {"type": "server", "timestamp": "2020-02-27T12:46:24,835Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "initialized" } {"type": "server", "timestamp": "2020-02-27T12:46:24,835Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "starting ..." } {"type": "server", "timestamp": "2020-02-27T12:46:24,965Z", "level": "INFO", "component": "o.e.t.TransportService", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "publish_address {172.17.0.2:9300}, bound_addresses {0.0.0.0:9300}" } {"type": "server", "timestamp": "2020-02-27T12:46:25,233Z", "level": "INFO", "component": "o.e.b.BootstrapChecks", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "bound or publishing to a non-loopback address, enforcing bootstrap checks" } ERROR: [1] bootstrap checks failed [1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/elasticsearch/logs/docker-cluster.log {"type": "server", "timestamp": "2020-02-27T12:46:25,268Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "stopping ..." } {"type": "server", "timestamp": "2020-02-27T12:46:25,306Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "stopped" } {"type": "server", "timestamp": "2020-02-27T12:46:25,306Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "closing ..." } {"type": "server", "timestamp": "2020-02-27T12:46:25,321Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "closed" } {"type": "server", "timestamp": "2020-02-27T12:46:25,323Z", "level": "INFO", "component": "o.e.x.m.p.NativeController", "cluster.name": "docker-cluster", "node.name": "0571dfad5be1", "message": "Native controller process has stopped - no new native processes can be started" }
解决方案:
在安装命令中添加 -e "discovery.type=single-node"
docker run -d --name elasticsearch -e "discovery.type=single-node" -p 9200:9200 -p 9300:9300 -v /esdata:/usr/share/elasticsearch/data elasticsearch:7.6.0