Elasticsearch some pits encountered while configuring [Failed to load settings from [ELASTICSEARCH.YML]

Source: Internet
Author: User

Before you play basically did not change the configuration file, in recent days again, changed some configuration files, handling a lot of nonsense error;

Here to tidy up a few spaces caused by the problem.

Version is elasticsearch-2.3.0 or 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]];

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/83/1D/wKioL1drWdTRyZOEAABb6dcwiNk462.png-wh_500x0-wm_3 -wmp_4-s_1921892985.png "style=" Float:none; "title=" 0.png "alt=" Wkiol1drwdtryzoeaabb6dcwink462.png-wh_50 "/>


This error is the parameter of the colon before and after the addition of space, plus after the good, I looked for a long time this problem;

Later found this sentence on a foreign website.


650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/83/1E/wKiom1drWdXTq3ZcAAAfLyj_X5I590.png-wh_500x0-wm_3 -wmp_4-s_3140333087.png "style=" Float:none; "title=" 1.png "alt=" 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 Lin E 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


650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/83/1D/wKioL1drWdWj8iK3AABYBfUjVgU808.png-wh_500x0-wm_3 -wmp_4-s_1979307238.png "style=" Float:none; "title=" 2.png "alt=" Wkiol1drwdwj8ik3aabybfujvgu808.png-wh_50 "/>


This is the beginning of the line without adding a space, fuck!


Exception in thread ' main ' settingsexception[failed to load settings from [ELASTICSEARCH.YML]; Nested:scannerexception[while scanning a simple key

In ' reader ', line one, column 2:

Discovery.zen.ping.unicast.hosts ...

^

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/83/1E/wKiom1drWdWgwsD9AAAZ1LdWga8086.png-wh_500x0-wm_3 -wmp_4-s_800262997.png "title=" 3.png "style=" Float:none; alt= "Wkiom1drwdwgwsd9aaaz1ldwga8086.png-wh_50"/>

Parameter Colon followed by a space, or the middle of the array with a space



There are comments out of the parameters can not be added after the # space or error

For example:

# Discovery.zen.minimum_master_nodes:3



At present, this version seems ES official programmer did not add to the above validation, do not handle;

The above parameters can solve many problems.

Maybe after a while, the problem with the brain is solved, but the previous version seems to have this kind of problem.


This article is from the My database blog, so be sure to keep this source http://wyd51.blog.51cto.com/1549780/1792111

Elasticsearch Some pits encountered while configuring [Failed to load settings from [ELASTICSEARCH.YML]]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.