我在Windows上安装了ElasticSearch(通过MSI包)。我安装它是为了手动运行(而不是作为Window Service)。当我运行/bin/ElasticSearch.exe
时,我得到了:
C:\Program Files\Elastic\Elasticsearch\6.2.4\bin>elasticsearch.exe
[2018-05-29T20:01:36,112][INFO ][o.e.n.Node ]
[MSEDGEWIN10] initializing ... [2018-05-29T20:01:36,299][INFO ][o.e.e.NodeEnvironment ]
[MSEDGEWIN10] using [1] data paths, mounts [[Windows 10 (C:)]], net usable_space [59.3gb], net total_space [97.6gb], types [NTFS] [2018-05-29T20:01:36,299][INFO ][o.e.e.NodeEnvironment ] [MSEDGEWIN10] heap size [1.9gb], compressed ordinary object pointers [true] [2018-05-29T20:01:36,455][INFO ][o.e.n.Node ] [MSEDGEWIN10] node name [MSEDGEWIN10], node ID [J5yTqffaR9K43tavP87CIQ] [2018-05-29T20:01:36,455][INFO ][o.e.n.Node ] [MSEDGEWIN10] version[6.2.4], pid[6912], build[ccec39f/2018-04-12T20:37:28.497551Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_171/25.171-b11] [2018-05-29T20:01:36,455][INFO ][o.e.n.Node ] [MSEDGEWIN10] JVM arguments [-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=${ES_TMPDIR}, -XX:+HeapDumpOnOutOfMemoryError, -Xmx2048m, -Xms2048m, -Delasticsearch, -Des.path.home=C:\Program Files\Elastic\Elasticsearch\6.2.4,
-Des.path.conf=C:\ProgramData\Elastic\Elasticsearch\config] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [aggs-matrix-stats] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [analysis-common] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [ingest-common] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [lang-expression] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [lang-mustache] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [lang-painless] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [mapper-extras] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [parent-join] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [percolator] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [rank-eval] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [reindex] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [repository-url] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [transport-netty4] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] loaded module [tribe] [2018-05-29T20:01:43,752][INFO ][o.e.p.PluginsService ] [MSEDGEWIN10] no plugins loaded [2018-05-29T20:01:54,940][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [MSEDGEWIN10] uncaught exception in thread [main] org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown secure setting [bootstrap.password] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.2.4.jar:6.2.4]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) ~[elasticsearch-6.2.4.jar:6.2.4] Caused by: java.lang.IllegalArgumentException: unknown secure setting [bootstrap.password] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:346) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:310) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:284) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.common.settings.SettingsModule.<init>(SettingsModule.java:134) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.node.Node.<init>(Node.java:331) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.node.Node.<init>(Node.java:246) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:213) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:323) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-6.2.4.jar:6.2.4]
... 6 more
答案 0 :(得分:1)
您可以通过导航到安装主目录并运行
,从the elasticsearch keystore删除bootstrap.password
来解决此问题。
bin/elasticsearch-keystore.bat remove bootstrap.password
Elasticsearch现在将在运行elasticsearch.exe时启动。
请在Windows Installer GitHub repository上打开一个问题进行讨论,因为bootstrap.password
只应在安装X-Pack插件时在密钥库中设置。我想更多地了解您的安装方式以及传递的安装参数,最好通过打开GitHub问题进行讨论:)
答案 1 :(得分:0)
在日志中的所有内容中,以下是主要错误:
[2018-05-29T20:01:54,940][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [MSEDGEWIN10] uncaught exception in thread [main] org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown secure setting [bootstrap.password] please check that any required plugins are installed, or check the breaking changes documentation for removed settings.
尝试使用以下选项启动elasticsearch:
bin/elasticsearch -E xpack.security.authc.accept_default_password=false
编辑:这没有帮助。你做过干净安装还是重新安装?
尝试手动设置密码:
bin/elasticsearch-keystore add "bootstrap.password"
如果您没有任何密钥库,这里有简单的操作方法:
https://www.elastic.co/guide/en/elasticsearch/reference/6.2/secure-settings.html