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鍵。