After changing port number in Elasticsearch.yml file its get Failed to start Elasticsearch

Sounds like you changed the transport port to 9400.
So you might have to change this

spring.data.elasticsearch.cluster-nodes=${ELASTICSEARCH_HOST}:9300

to

spring.data.elasticsearch.cluster-nodes=${ELASTICSEARCH_HOST}:9400