Elasticsearch启动时出现闪退问题解决方法

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 如:
在这里插入图片描述

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值