zoukankan      html  css  js  c++  java
  • elasticsearch配置文件里的一些坑 [Failed to load settings from [elasticsearch.yml]]

    这里整理几个空格引起的问题.

    版本是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]];

    wKioL1drWdTRyZOEAABb6dcwiNk462.png-wh_50

    这个错就是参数的冒号前后没有加空格,加了之后就好,我找了好久这个问题;

    后来在一个外国网站找到了这句话.

    wKiom1drWdXTq3ZcAAAfLyj_X5I590.png-wh_50

    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

    wKioL1drWdWj8iK3AABYBfUjVgU808.png-wh_50

    这个是行的开头没有加空格,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 ... 

         ^

    wKiom1drWdWgwsD9AAAZ1LdWga8086.png-wh_50

    参数冒号后加空格,或者是数组中间加空格

    例如:

    # discovery.zen.minimum_master_nodes: 3

    目前这个版本看来es官方程序员没有在这上边加验证,没有做好处理;

    参数上空格能解决好多问题.

    也许过一段时间这种脑残的问题就解决了,但是之前的版本貌似都有这类问题

  • 相关阅读:
    sql学习笔记
    正则表达式30分钟入门教程(转) 收藏
    学习Javascript闭包(Closure)
    Bug等级规范
    下载1G的东西用1M网速理论上要用多长时间?
    C#多线程学习(四) 多线程的自动管理(线程池)
    JS调用WebServers
    北京软件公司排名
    Js调用WebServices
    C#多线程学习(三) 生产者和消费者
  • 原文地址:https://www.cnblogs.com/jiu0821/p/5624908.html
Copyright © 2011-2022 走看看