Issue with elasticsearch

ClientProtocolException

Are you using http or https?
Have you test ES by curl?
What did you put for network.host in elasticsearch.yml? Default is
Usually helps to set: network.host: 0.0.0.0
Here was explained.