node.name=${HOSTNAME} in the environment variable could not be resolved #93218
Labels
>bug
:Core/Infra/Settings
Settings infrastructure and APIs
:Delivery/Packaging
RPM and deb packaging, tar and zip archives, shell and batch scripts
Team:Core/Infra
Meta label for core/infra team
Team:Delivery
Meta label for Delivery team
Elasticsearch Version
8.6.0
Installed Plugins
no installed plugins
Java Version
19.0.1
OS Version
macOS Monterey 12.3.1
Problem Description
I use the environment variable
node.name=$HOSTNAME
to dynamically set the node name.It is fine until Elasticsearch version 7.17.7.
When I upgraded to 8.6.0, Elasticsearch failed to start.
The problem is
HOSTNAME
in the environment variable could not be resolved when starting up Elasticsearch.The expected behavior is
$HOSTNAME
should be replaced by the hostname of the running Elasticsearch machine.Steps to Reproduce
docker-compose up es
will reproduce the problem.$${HOSTNAME}
is escaped and should be interpreted as${HOSTNAME}
in Elasticsearch.I checked that there is no problem with version 7.17.7 using the image
docker.elastic.co/elasticsearch/elasticsearch:7.17.7
.I confirmed that the same problem occurs in AWS ECS.
Logs (if relevant)
The text was updated successfully, but these errors were encountered: