elasticsearc 启动不成功 一直闪退
错误信息
Microsoft Windows [版本 10.0.17763.1098] (c) 2018 Microsoft Corporation。保留所有权利。 D:\dev\ElasticSearch\elasticsearch-6.3.0\bin>elasticsearch.bat [2020-04-09T19:58:05,639][INFO ][o.e.n.Node ] [] initializing ... [2020-04-09T19:58:05,712][INFO ][o.e.e.NodeEnvironment ] [BlgkVR8] using [1] data paths, mounts [[DATA (D:)]], net usable_space [217.1gb], net total_space [296gb], types [NTFS] [2020-04-09T19:58:05,713][INFO ][o.e.e.NodeEnvironment ] [BlgkVR8] heap size [989.8mb], compressed ordinary object pointers [unknown] [2020-04-09T19:58:05,716][INFO ][o.e.n.Node ] [BlgkVR8] node name derived from node ID [BlgkVR8WRwKqKV4CBZV4RQ]; set [node.name] to override [2020-04-09T19:58:05,716][INFO ][o.e.n.Node ] [BlgkVR8] version[6.3.0], pid[12576], build[default/zip/424e937/2018-06-11T23:38:03.357887Z], OS[Windows 10/10.0/x86], JVM[Oracle Corporation/Java HotSpot(TM) Client VM/1.8.0_131/25.131-b11] [2020-04-09T19:58:05,716][INFO ][o.e.n.Node ] [BlgkVR8] 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=C:\Users\hp\AppData\Local\Temp\elasticsearch, -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, -Delasticsearch, -Des.path.home=D:\dev\ElasticSearch\elasticsearch-6.3.0, -Des.path.conf=D:\dev\ElasticSearch\elasticsearch-6.3.0\config, -Des.distribution.flavor=default, -Des.distribution.type=zip] [2020-04-09T19:58:08,167][INFO ][o.e.p.PluginsService ] [BlgkVR8] loaded module [aggs-matrix-stats] [2020-04-09T19:58:08,167][INFO ][o.e.p.PluginsService ] [BlgkVR8] loaded module [analysis-common] [2020-04-09T19:58:08,168][INFO ][o.e.p.PluginsService ] [BlgkVR8] loaded module [ingest-common] [2020-04-09T19:58:08,168][INFO ][o.e.p.PluginsService ] [BlgkVR8] loaded module [lang-expression] [2020-04-09T19:58:08,168][INFO ][o.e.p.PluginsService ] [BlgkVR8] loaded module [lang-mustache] [2020-04-09T19:58:08,168][INFO ][o.e.p.PluginsService ] [BlgkVR8] loaded module [lang-painless] [2020-04-09T19:58:08,168][INFO ][o.e.p.PluginsService ] [BlgkVR8] loaded module [mapper-extras] [2020-04-09T19:58:08,168][INFO ][o.e.p.PluginsService ] [BlgkVR8] loaded module [parent-join] [2020-04-09T19:58:08,170][INFO ][o.e.p.PluginsService ] [BlgkVR8] loaded module [percolator] [2020-04-09T19:58:08,170][INFO ][o.e.p.PluginsService ] [BlgkVR8] loaded module [
原因是config里的elasticsearch.yml文件没有 xpack.ml.enabled: false
在elasticsearch.ym末尾添加xpack.ml.enabled: false 如: