Skip to content
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

Merged
merged 4 commits into from
Jun 27, 2017
Merged

Conversation

jasontedor
Copy link
Member

@jasontedor jasontedor commented Jun 26, 2017

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

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.
@jasontedor jasontedor added :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts blocker >breaking review v6.0.0 labels Jun 26, 2017
@jasontedor jasontedor requested a review from rjernst June 26, 2017 20:58
Copy link
Member

@rjernst rjernst left a 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
Copy link
Member

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"
Copy link
Member

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?

Copy link
Member Author

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.

@jasontedor
Copy link
Member Author

retest this please

@jasontedor jasontedor merged commit dfd241e into elastic:master Jun 27, 2017
@jasontedor jasontedor deleted the default-paths branch June 27, 2017 01:43
tylerjl added a commit to tylerjl/puppet-elasticsearch that referenced this pull request Jul 12, 2017
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
cegeka-jenkins pushed a commit to cegeka/puppet-elasticsearch that referenced this pull request Oct 23, 2017
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
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker >breaking :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team v6.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants