-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Remove default path settings #25408
Remove default path settings #25408
Conversation
This commit removes the default path settings for data and logs. With this change, we now ship the packages with these settings set in the elasticsearch.yml configuration file rather than going through the default.path.data and default.path.logs dance that we went through in the past.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
==== Default path settings are removed | ||
|
||
Previous versions of Elasticsearch enabled setting `default.path.data` and | ||
`default.path.logs` so set the default data path and default logs path if they |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: so -> to
@@ -35,8 +35,6 @@ fi | |||
ES_HOME="/usr/share/elasticsearch" | |||
MAX_OPEN_FILES=65536 | |||
MAX_MAP_COUNT=262144 | |||
LOG_DIR="/var/log/elasticsearch" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we fail hard if these env vars are set? Not sure where the appropriate place to check it is. Somewhere in the service files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be the only place, these environment variables were only ever used in the service files and were never exported from them. Let me do this as a follow up.
retest this please |
default.path.data and default.path.log have been removed and cause errors on startup for versions 6.x and later.[1] Likewise, default.path.conf has been moved to path.conf.[2] [1]: elastic/elasticsearch#25408 [2]: elastic/elasticsearch#25392
default.path.data and default.path.log have been removed and cause errors on startup for versions 6.x and later.[1] Likewise, default.path.conf has been moved to path.conf.[2] [1]: elastic/elasticsearch#25408 [2]: elastic/elasticsearch#25392
This commit removes the default path settings for data and logs. With this change, we now ship the packages with these settings set in the elasticsearch.yml configuration file rather than going through the default.path.data and default.path.logs dance that we went through in the past.
Relates #25357