elasticsearch修改配置文件后启动提示nested: ParserException[expected '<document start>', but found BlockMappingS
来源:互联网 发布:安悦溪演技知乎 编辑:程序博客网 时间:2024/06/14 03:30
之前都是自己玩基本上没改过配置文件,最近几天又重新弄,改了一些配置文件,处理好多扯淡的错误;
这里整理几个空格引起的问题.
版本是elasticsearch-2.3.0 或者elasticsearch-rtf-master
Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ElasticsearchParseException[malformed, expected settings to start with 'object', instead was [VALUE_STRING]];
这个错就是参数的冒号前后没有加空格,加了之后就好,我找了好久这个问题;
后来在一个外国网站找到了这句话.
Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ElasticsearchParseException[malformed, expected end of settings but encountered additional content starting at line number: [3], column number: [1]]; nested: ParserException[expected '<document start>', but found BlockMappingStart
in 'reader', line 3, column 1:
node.rack : r1
^
];
Likely root cause: expected '<document start>', but found BlockMappingStart
in 'reader', line 3, column 1:
node.rack : r1
这个是行的开头没有加空格,fuck!
Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ScannerException[while scanning a simple key
in 'reader', line 11, column 2:
discovery.zen.ping.unicast.hosts ...
^
参数冒号后加空格,或者是数组中间加空格
还有注释掉的参数不能在#后边加空格不然报错
例如:
# discovery.zen.minimum_master_nodes: 3
目前这个版本看来es官方程序员没有在这上边加验证,没有做好处理;
参数上空格能解决好多问题.
也许过一段时间这种脑残的问题就解决了,但是之前的版本貌似都有这类问题
本文出自 “我的资料库” 博客,请务必保留此出处http://wyd51.blog.51cto.com/1549780/1792111
- elasticsearch修改配置文件后启动提示nested: ParserException[expected '<document start>', but found BlockMappingS
- expected '<document start>', but found BlockMappingStart in 'reader', line 13, column 1:nimbus.host:
- expected but found 'int'
- 用MDK:test.axf: Error: L6630E: Invalid token start expected number or ( but found
- Keil-MDK的 Error: L6630E: Invalid token start expected number or ( but found。。。
- 使用dubbo对外暴露接口,实现类同时实现两个接口后 @Autowire失败,提示expected single matching bean but found 2解决方案
- 解决hive启动时报 Found class jline.Terminal, but interface was expected...的问题
- hive启动报错: Found class jline.Terminal, but interface was expected
- hive启动报错:Found class jline.Terminal, but interface was expected
- 解决hive启动时报错 Found class jline.Terminal, but interface was expected
- hive 启动报错 Found class jline.Terminal, but interface was expected
- MDK:test.axf: Error: L6630E: Invalid token start expected number or ( but found n at position 5 on l
- Error : (Serious) C2304E: expected but found 'void'
- Dlephi7 Locate Expression Expected but Nothing found
- expected single matching bean but found 2
- expected single matching bean but found 2
- expected single matching bean but found 2
- Injection expected single matching bean but found
- POJ 2406 - Power String
- 基于Html5的移动端APP开发框架
- centos中编译安装nginx并支持ssl
- Remove Duplicates from Sorted Array II
- okhttp3.0的工具类
- elasticsearch修改配置文件后启动提示nested: ParserException[expected '<document start>', but found BlockMappingS
- Oracle 11g sys,system 密码忘记设置解决办法
- 阿里云RDS的mysql数据库占用空间超过90%的处理
- 画虚线
- Mac idea还原默认配置
- 蘑菇街电商交易平台服务架构及改造优化历程
- Android Splash界面解决白屏、黑屏等问题
- 在ListView中嵌套ListView的事件处理
- 【SQLSERVER】获取完整建表DDL SQL