We recently deploy a new cluster v7.4 and receiving very strange deprecation warnings.
[2019-10-07T07:08:33,504][WARN ][o.e.d.t.TransportInfo ] [node-01.example.com] 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.
[2019-10-07T07:08:33,504][WARN ][o.e.d.h.HttpInfo ] [node-01.example.com] es.http.cname_in_publish_address system property is deprecated and no longer affects http.publish_address formatting. Remove this property to get rid of this deprecation warning.
The second one was:
/etc/elasticsearch/jvm.options
There are no extra options such as mentioned in warning.
The actual command line is:
/usr/share/elasticsearch/jdk/bin/java -Xms256m -Xmx256m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -XX:+HeapDumpOnOutOfMemoryError -Dio.netty.allocator.type=unpooled -XX:MaxDirectMemorySize=134217728 -Des.path.home=/usr/share/elasticsearch -Des.path.conf=/etc/elasticsearch -Des.distribution.flavor=default -Des.distribution.type=rpm -Des.bundled_jdk=true -cp /usr/share/elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch -p /var/run/elasticsearch/elasticsearch.pid --quiet
Please help me get rid of this warnings.
It's important for us, because we are going to migrate to ESv7 and there are a lot of systems that are using deprecated features, this warning produce a lot of noise.
I see, sorry, your message is not well formatted so it's difficult to read both log messages. The one about the transport publish address is correct and instructs you how to resolve it:
and in logs I see:
[2019-10-07T07:55:24,000][WARN ][o.e.d.h.HttpInfo ] [node-01] es.http.cname_in_publish_address system property is deprecated and no longer affects http.publish_address formatting. Remove this property to get rid of this deprecation warning.
Any workarounds?
We are considering to filter such kind of noise in filebeat processors
I don't have the code in front of me right now, but if I remember correctly you can set es.http.cname_in_publish_address to false to suppress this warning until 7.4.1 comes out.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.