-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Stop exporting HOSTNAME from scripts #25807
Conversation
Today we explicitly export the HOSTNAME variable from scripts. This is probably a relic from the days when the scripts were not run on bash but instead assume a POSIX-compliant shell only where HOSTNAME is not guaranteed to exist. Yet, bash guarantees that HOSTNAME is set so we do not need to set it in scripts. This commit removes this legacy.
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
Hey, Was this intentional? I'm pretty sure this is a rather newish feature. Ref: #9474 |
@shaharmor It did not remove support for that, you can still set in the elasticsearch.yml and it will be observed. The only thing that it removed is ensuring that |
Well, it doesn't work for me :) On ES 6 beta 1 This is my cluster.name: test
path.data: /data/elasticsearch
path.logs: /var/log/elasticsearch
discovery.zen.ping.unicast.hosts:
- 'elasticsearch-data-001'
- 'elasticsearch-data-002'
- 'elasticsearch-data-003'
node.name: ${HOSTNAME}
node.master: true
node.data: true
node.max_local_storage_nodes: 1
network.host:
- '_site_'
- '_local_'
bootstrap.memory_lock: true
http.cors.enabled: true
http.cors.allow-origin: "*" OS:
And
When starting using
This is after an |
It's probably systemd, I'll take a look later. Would you mind opening a new issue with these details and ping me on it? Thanks for trying out the beta! |
Today we explicitly export the HOSTNAME variable from scripts. This is probably a relic from the days when the scripts were not run on bash but instead assume a POSIX-compliant shell only where HOSTNAME is not guaranteed to exist. Yet, bash guarantees that HOSTNAME is set so we do not need to set it in scripts. This commit removes this legacy.