Hi
I am aware of other similar posts regarding the same issue as I describe here. I have tried to follow the posts at use the suggested solutions, but I have not had any success implementing the solution. Therefore I try a new topic.
Problem:
After upgrading to 7.5.1 we see this log-entry in the elasticsearch-cluster_deprecation.log every 3 seconds:
[2020-03-23T12:35:28,656][WARN ][o.e.d.t.TransportInfo ] [<SERVER>] transport.publish_address was printed as [ip:port] instead of [hostname/ip:port]. This format is deprecated and will change to [hostname/ip:port] in a future version. Use -Des.transport.cname_in_publish_address=true to enforce non-deprecated formatting.
System:
OS: Windows
Elastic: 7.5.1
OpenJDK: 13.0.1
Nodes: 1
Running: As Elastic Service
Already tried:
-
Adding the following to jvm.options:
-Des.transport.cname_in_publish_address=true -
Adding the following to elasticsearch.bat
-Des.transport.cname_in_publish_address=true
(in the line for: %JAVA% %ES_JAVA_OPTS%) -
Adding the following to elasticsearch-service.bat
-Des.transport.cname_in_publish_address=true
(in the line for: set ES_PARAMS=)
In all the above tries the same logs are still present in the elasticsearch-cluster_deprecation.log
elasticsearch.yml is:
bootstrap.memory_lock: false
cluster.name: <CLUSTER-NAME>
discovery.seed_hosts:
- <SERVER>
cluster.initial_master_nodes:
- <SERVER>
http.port: 9200
network.host: <SERVER>
node.data: true
node.ingest: true
node.master: true
node.name: <SERVER>
path.data: C:\ProgramData\Elastic\Elasticsearch\data
path.logs: C:\ProgramData\Elastic\Elasticsearch\logs
xpack.license.self_generated.type: basic
xpack.security.enabled: false
logger.org.transport.level: warn
The elasticsearch-cluster.log writes this under startup, which I think actually indicates that it is OK:
[2020-03-23T11:56:21,473][INFO ][o.e.t.TransportService ] [<SERVER>] publish_address {<SERVER>/<IP>:9300}, bound_addresses {[<IPV6>]:9300}, {<IP>:9300}
Checkup:
When performing the following in the API I get the following:
GET /_nodes
#! Deprecation: transport.publish_address was printed as [ip:port] instead of [hostname/ip:port]. This format is deprecated and will change to [hostname/ip:port] in a future version. Use -Des.transport.cname_in_publish_address=true to enforce non-deprecated formatting.
And the transport_address is:
"transport_address" : "<IP>:9300",
In the JVM input_arguments the:
-Des.transport.cname_in_publish_address
is not present?
It could might as well be that I am missing something in the setup.
If you have some input for the above, then please share it with me.
Best Regards,
Martin