I am getting following exception while running elasticsearch.yml.

BindTransportException[Failed to bind to [9495]]
ChannelException[Failed to bind to: my_IP:9495]
BindException[Cannot assign requested address: bind]

A bit more context would help.

Are you changing the port or interface that ES is listening on?

We had this issue, too. It can be caused by a wrong IP in the elasticsearch.yml (network.bind_host and network.publish_host, or, setting both, Or if your elasticsearch container runs in a docker container, you may have to give docker more control over the network.