-
-
Notifications
You must be signed in to change notification settings - Fork 598
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
Init script incorrectly creates data dirs #441
Comments
Hello, and thanks for catching this! We're actually using the exact init scripts provided by the deb/rpm packages shipped from Elastic. I'm going to report this upstream... it's clear the init scripts can't handle comma-delimited data directories. |
@martinb3 makes perfect sense. |
Thanks for the fix, @dakrone! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On
elasticsearch.in.sh.erb
line 12, we simply convert the value ofparams[:DATA_DIR]
to a string (seeprovider_configure.rb
@ line 76 for the assignment). This results in one of two things:mkdir
interprets literally (so you might end up with a path like/mnt/dev0/elasticsearch/data,/mnt/dev1/elasticsearch/data
'["str1", "str2"]'
), which bash does not likeIt seems that the
elasticsearch_configure
LWRP and the service scripts for Debian & Ubuntu systems both create the data directories ES needs:I think the
mkdir
in the service scripts can be removed, which would also give them parity with how the other systems’ service scripts work.The text was updated successfully, but these errors were encountered: