java - 我的 Elasticsearch 启动错误如何解决这个问题?
问题描述
macOS 10.13.6 弹性搜索 -6.4.0
kennethdeMBP:elasticsearch-6.4.0 kenneth$ ./bin/elasticsearch
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Exception in thread "main" 2018-08-30 21:10:05,731 main ERROR No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2
SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ParsingException[Failed to parse object: expecting token of type [START_OBJECT] but found [VALUE_STRING]];
at org.elasticsearch.common.settings.Settings$Builder.loadFromStream(Settings.java:1192)
at org.elasticsearch.common.settings.Settings$Builder.loadFromPath(Settings.java:1165)
at org.elasticsearch.node.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:100)
at org.elasticsearch.cli.EnvironmentAwareCommand.createEnv(EnvironmentAwareCommand.java:95)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86)
Caused by: ParsingException[Failed to parse object: expecting token of type [START_OBJECT] but found [VALUE_STRING]]
at org.elasticsearch.common.xcontent.XContentParserUtils.ensureExpectedToken(XContentParserUtils.java:78)
at org.elasticsearch.common.settings.Settings.fromXContent(Settings.java:672)
at org.elasticsearch.common.settings.Settings.access$500(Settings.java:84)
at org.elasticsearch.common.settings.Settings$Builder.loadFromStream(Settings.java:1188)
... 8 more
kennethdeMBP:elasticsearch-6.4.0 kenneth$
解决方案
推荐阅读
- linux - docker 无法在外部设备上统计目录
- java - 从 textview 获取值
- html - 设置分隔符剪辑路径(多边形)响应
- javascript - 未捕获(承诺中)ReferenceError:纬度未定义
- maven - 是否有使用 CI jenkins 管道(最好是 maven+nexus)构建铬扩展(Edge+Chrome)的最新(crx3)方法?
- python - 我正在尝试在 for 循环中使用 int,但出现了错误消息 expected type 'collections.iterable' got 'int'
- java - 来自 firebase 实时数据库的名称和密码
- vba - 将 MS Visio 文件 (.vsdm) 中的 ActiveX 控件按钮导出为 PDF
- git - 在提交/拉取请求/合并请求上构建一些确定性指标的图表
- python - 以太网/IP 通信与传感器理论上工作,但我只得到 0 值