当前位置: 首页 > 工具软件 > 2019-04 > 使用案例 >

【elasticsearch】Exception in thread “main“ 2019-04-28 03:53:04 main ERROR No log4j2 configuration

刁丰羽
2023-12-01

Exception in thread "main" 2019-04-28 03:53:04,339 main ERROR No log4j2 configuration file found.

SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ParsingException[Failed to parse object: expecting token of type [START_OBJECT] but found [VALUE_STRING]];

Caused by: ParsingException[Failed to parse object: expecting token of type [START_OBJECT] but found [VALUE_STRING]]

解决办法: ES的配置文件写错了,请尽量保持冒号前面没空格,后面一个空格,不要用tab键。

 类似资料: