elasticsearch启动失败
来源:互联网 发布:sql字符串查找函数 编辑:程序博客网 时间:2024/06/03 14:59
今天在启动elasticsearch遇到了这个问题,然后查到了这篇文章,当我改完之后,还真的是空格的问题。又白白浪费时间啦
这里整理几个空格引起的问题.
版本是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官方程序员没有在这上边加验证,没有做好处理;
参数上空格能解决好多问题.
也许过一段时间这种脑残的问题就解决了,但是之前的版本貌似都有这类问题
- supervisord 启动elasticsearch 失败
- elasticsearch启动失败
- elasticsearch 启动
- elasticsearch作为服务启动
- Elasticsearch 启动配置
- Elasticsearch在后台启动
- elasticsearch启动警告
- elasticsearch--自启动设置
- Elasticsearch 安装与启动
- elasticsearch 不能root启动
- ElasticSearch停止启动
- Ubuntu下启动elasticsearch
- Elasticsearch在后台启动
- elasticsearch启动错误解决办法
- elasticsearch启动错误
- Elasticsearch 用户启动问题
- ElasticSearch 启动报错
- Elasticsearch python 启动脚本
- 学习mybatis之前
- JMETER打不开
- Generate Parentheses
- shiro权限控制
- 随笔之发发牢骚之考研
- elasticsearch启动失败
- Jedis连接池
- 常用命令:df/du & 磁盘分区
- MVC设计模式
- C++ 文本IO
- Oracle 安装步骤 day01
- 累加求和
- Jingxhan Diary (1)
- 【剑指offer】1-10题