舟山彭于晏 2021-11-01 10:24 采纳率: 50%
浏览 71
已结题

es在配置yml文件时闪退,不知道什么原因,附有日志


[2021-11-01T10:20:23,829][INFO ][o.e.n.Node               ] [node-1001] version[7.15.1], pid[15600], build[default/zip/83c34f456ae29d60e94d886e455e6a3409bba9ed/2021-10-07T21:56:19.031608185Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_121/25.121-b13]
[2021-11-01T10:20:23,831][INFO ][o.e.n.Node               ] [node-1001] JVM home [C:\Program Files\Java\jdk1.8.0_121\jre], using bundled JDK [false]
[2021-11-01T10:20:23,831][INFO ][o.e.n.Node               ] [node-1001] 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=SPI,JRE, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.io.tmpdir=C:\Users\13524\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, -Xms1024m, -Xmx1024m, -XX:MaxDirectMemorySize=536870912, -Delasticsearch, -Des.path.home=D:\es搜索引擎\elasticsearch-7.15.1-windows-x86_64\elasticsearch-7.15.1, -Des.path.conf=D:\es搜索引擎\elasticsearch-7.15.1-windows-x86_64\elasticsearch-7.15.1\config, -Des.distribution.flavor=default, -Des.distribution.type=zip, -Des.bundled_jdk=true]
[2021-11-01T10:20:26,745][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [aggs-matrix-stats]
[2021-11-01T10:20:26,745][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [analysis-common]
[2021-11-01T10:20:26,745][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [constant-keyword]
[2021-11-01T10:20:26,746][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [frozen-indices]
[2021-11-01T10:20:26,746][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [ingest-common]
[2021-11-01T10:20:26,746][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [ingest-geoip]
[2021-11-01T10:20:26,746][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [ingest-user-agent]
[2021-11-01T10:20:26,746][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [kibana]
[2021-11-01T10:20:26,747][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [lang-expression]
[2021-11-01T10:20:26,747][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [lang-mustache]
[2021-11-01T10:20:26,747][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [lang-painless]
[2021-11-01T10:20:26,747][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [mapper-extras]
[2021-11-01T10:20:26,747][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [mapper-version]
[2021-11-01T10:20:26,747][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [parent-join]
[2021-11-01T10:20:26,748][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [percolator]
[2021-11-01T10:20:26,748][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [rank-eval]
[2021-11-01T10:20:26,748][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [reindex]
[2021-11-01T10:20:26,748][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [repositories-metering-api]
[2021-11-01T10:20:26,748][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [repository-encrypted]
[2021-11-01T10:20:26,749][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [repository-url]
[2021-11-01T10:20:26,749][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [runtime-fields-common]
[2021-11-01T10:20:26,749][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [search-business-rules]
[2021-11-01T10:20:26,749][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [searchable-snapshots]
[2021-11-01T10:20:26,749][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [snapshot-repo-test-kit]
[2021-11-01T10:20:26,749][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [spatial]
[2021-11-01T10:20:26,750][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [transform]
[2021-11-01T10:20:26,750][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [transport-netty4]
[2021-11-01T10:20:26,750][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [unsigned-long]
[2021-11-01T10:20:26,750][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [vector-tile]
[2021-11-01T10:20:26,750][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [vectors]
[2021-11-01T10:20:26,751][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [wildcard]
[2021-11-01T10:20:26,751][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-aggregate-metric]
[2021-11-01T10:20:26,752][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-analytics]
[2021-11-01T10:20:26,752][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-async]
[2021-11-01T10:20:26,752][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-async-search]
[2021-11-01T10:20:26,752][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-autoscaling]
[2021-11-01T10:20:26,752][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-ccr]
[2021-11-01T10:20:26,753][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-core]
[2021-11-01T10:20:26,753][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-data-streams]
[2021-11-01T10:20:26,753][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-deprecation]
[2021-11-01T10:20:26,753][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-enrich]
[2021-11-01T10:20:26,754][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-eql]
[2021-11-01T10:20:26,758][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-fleet]
[2021-11-01T10:20:26,758][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-graph]
[2021-11-01T10:20:26,759][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-identity-provider]
[2021-11-01T10:20:26,759][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-ilm]
[2021-11-01T10:20:26,760][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-logstash]
[2021-11-01T10:20:26,760][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-ml]
[2021-11-01T10:20:26,760][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-monitoring]
[2021-11-01T10:20:26,761][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-ql]
[2021-11-01T10:20:26,761][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-rollup]
[2021-11-01T10:20:26,761][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-security]
[2021-11-01T10:20:26,761][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-shutdown]
[2021-11-01T10:20:26,761][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-sql]
[2021-11-01T10:20:26,762][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-stack]
[2021-11-01T10:20:26,762][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-text-structure]
[2021-11-01T10:20:26,762][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-voting-only-node]
[2021-11-01T10:20:26,762][INFO ][o.e.p.PluginsService     ] [node-1001] loaded module [x-pack-watcher]
[2021-11-01T10:20:26,763][INFO ][o.e.p.PluginsService     ] [node-1001] no plugins loaded
[2021-11-01T10:20:27,208][INFO ][o.e.e.NodeEnvironment    ] [node-1001] using [1] data paths, mounts [[Data (D:)]], net usable_space [52.6gb], net total_space [375.6gb], types [NTFS]
[2021-11-01T10:20:27,209][INFO ][o.e.e.NodeEnvironment    ] [node-1001] heap size [989.8mb], compressed ordinary object pointers [true]
[2021-11-01T10:20:29,596][INFO ][o.e.n.Node               ] [node-1001] node name [node-1001], node ID [WcTP7ozWQv6GclCFOKYuig], cluster name [my-application], roles [transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]
[2021-11-01T10:20:31,251][ERROR][o.e.b.Bootstrap          ] [node-1001] Exception
java.lang.IllegalArgumentException: unknown setting [http.cors.allowed-origin] did you mean [http.cors.allow-origin]?
    at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:533) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:478) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:449) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:420) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.common.settings.SettingsModule.<init>(SettingsModule.java:138) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.node.Node.<init>(Node.java:452) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.node.Node.<init>(Node.java:288) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:219) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:219) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:399) [elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:167) [elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:158) [elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) [elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:114) [elasticsearch-cli-7.15.1.jar:7.15.1]
    at org.elasticsearch.cli.Command.main(Command.java:79) [elasticsearch-cli-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:123) [elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) [elasticsearch-7.15.1.jar:7.15.1]
[2021-11-01T10:20:31,255][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1001] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown setting [http.cors.allowed-origin] did you mean [http.cors.allow-origin]?
    at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:171) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:158) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:114) ~[elasticsearch-cli-7.15.1.jar:7.15.1]
    at org.elasticsearch.cli.Command.main(Command.java:79) ~[elasticsearch-cli-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:123) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) ~[elasticsearch-7.15.1.jar:7.15.1]
Caused by: java.lang.IllegalArgumentException: unknown setting [http.cors.allowed-origin] did you mean [http.cors.allow-origin]?
    at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:533) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:478) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:449) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:420) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.common.settings.SettingsModule.<init>(SettingsModule.java:138) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.node.Node.<init>(Node.java:452) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.node.Node.<init>(Node.java:288) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:219) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:219) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:399) ~[elasticsearch-7.15.1.jar:7.15.1]
    at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:167) ~[elasticsearch-7.15.1.jar:7.15.1]
    ... 6 more
  • 写回答

2条回答 默认 最新

  • duguxingzhe 2021-11-01 12:01
    关注

    配置名 http.cors.allow-origin 写成 http.cors.allowed-origin 了吧?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 11月9日
  • 已采纳回答 11月1日
  • 创建了问题 11月1日

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度