-
-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues configuring unicast cluster #158
Comments
First, it's perfectly fine to open an issue just for a question like this. Second, it's weird, can you run Chef with debug level logging, so the "Found elasticsearch nodes at …" line is printed? What gets added to |
Thanks for the lead, it looks like the search query isn't getting set. Am I correct to use "discovery.search_query" dot notation or do I need to use a json object? I have tried both but the json object crashed the chef run iirc. Ad far as my Here is the query and return from the chef run (with a lot of stuff omitted)
Id it considered best practice to use lowercase for role names? I haven't found (haven't looked very hard) any community agreed upon standards for naming and such. |
Looks like I guessed correctly, this WAS a case of user error. First issue was that the dot notation was causing the default search query to be used. This is what I should have been using (and what the config looks like now):
The second issue was that I was trying to do this, which was causing the Chef run to crash, making me think the json was incorrectly formatted.
After a Chef run on all three of my nodes, and a quick reboot, I have a working ElasticSearch clsuter! Thanks for the pointer about debug, that's what got me pointed in the right direction! |
Aye, the "dot notation" is quite specific to Elasticsearch (and the Chef cookbook can play with it), but when you're setting up your node attributes, environments, etc etc., you have to use the common & valid Ruby Hash / JSON. Glad it's working. |
I feel really bad for opening this because I am sure its my fault, since I'm really new to Chef (Puppet convert), but I need some help.
I am setting up a 3 node ElasticSearch cluster in our new data center, and since our blade chassis's switch doesn't support multicast I need to get the unicast discovery working with Chef.
This is my elasticsearch role config.
When I use
knife search
with the search query above it finds all three of my ES nodes, but the Chef run does not add them to the elasticsearch.ymlLike I said, I am 99.9% sure I am just missing something, but I spend almost 4 hours yesterday combing through the source here on GitHub, and between being new with Chef and not being fluent in Ruby, I am really stumped.
The text was updated successfully, but these errors were encountered: