目录
问题现象:
今日在测试机安装elasticsearch至创建用户这一步骤时,执行./elasticsearch-keystore create失败具体报错信息如下:
Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: MarkedYAMLException[while parsing a block mapping
in 'reader', line 2, column 1:
cluster.name: myapplication
^
expected <block end>, but found BlockMappingStart
in 'reader', line 4, column 2:
node.name: localhost
^
at [Source: sun.nio.ch.ChannelInputStream@7d9e8ef7; line: 2, column: 28]]; nested: ParserException[while parsing a block mapping
in 'reader', line 2, column 1:
cluster.name: myapplication
^
expected <block end>, but found BlockMappingStart
in 'reader', line 4, column 2:
node.name: localhost
^
];
at org.elasticsearch.common.settings.Settings$Builder.