You can disable the warning message by explicitly turning off security
# vi /etc/elasticsearch/elasticsearch.yml
xpack.security.enabled: false
Important: do NOT disable ElasticSearch security if you are not on a sandboxed secure context