Change node hostname

Hi

We have a 7 node ES cluster (v7.17.5) and we need to change the hostnames of all nodes. I know how to do it on Linux, but, is there anything I need to change on Elasticsearch?

My elasticsearch.yml uses ip address (not hostnames), and we are not changing ips. For example:

discovery.seed_hosts: ["10.57.40.167",
"10.57.40.168",
"10.57.40.169",
"10.57.40.136",
"10.57.40.137"]

But I see now two parameters which do use node name:

xpack.security.transport.ssl.keystore.path: certs/${node.name}.p12
xpack.security.transport.ssl.truststore.path: certs/${node.name}.p12

Thanks

This ${node.name} can come from some automation tool used to create the configuration or it may be a variable in the elasticsearch keystore.

List the settings in the keystore to see if you have something like this.

/usr/share/elasticsearch/bin/elasticsearch-keystore list

Hi

The command returns:

/usr/share/elasticsearch/bin/elasticsearch-keystore list

keystore.seed

But I'm not worried about that parameter, what I'm asking if I need to change something in the Elastic Cluster when I'm changing the system hostname...

Thanks

Hi

Anyone else with some ideas about this issue?

Thanks

Hi there

Anyone else with some ideas about this issue?

Thanks

Hi

Any ideas out there?

Thanks

Hi everyone.

Can anyone help me with this issue?

Thanks

The system hostname is only used if you do not set the node.name in elasticsearch.yml, if you have set it, then it is irrelevant what is the hostname.

Also, the node name is just a human-readable identifier of the node, to know which node is which the uuid generated when started the node for the first time is used.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.