Packetbeat Failed to connect to backoff(https://.....) EOF

Hi There,
I am new to this!
I have setup an Opendistro Elastic search using docker images and the setup is working as expected. But now I want to get data to show in this new Kibana from a packetbeat installed on and it is giving me below error.

“Failed to connect to backoff(elasticsearch(http://104.239.168.189:9200)): Get “http://104.239.168.189:9200”: EOF”

packetbeat.yml
output.elasticsearch:

Array of hosts to connect to.

#hosts: [“104.130.13.71:9200”]
#hosts: [“104.239.168.189:9200”,“104.130.13.71:9200”]
hosts: [“104.239.168.189:9200”]

#Protocol - either http (default) or https.
protocol: “https”

Authentication credentials - either API key or username/password.

#api_key: “id:api_key”
#username: “elastic”
#password: “changeme”
username: “admin”
password: “admin”

------------------------------ Logstash Output -------------------------------

#output.logstash:

The Logstash hosts

#hosts: [“localhost:5044”]

Optional SSL. By default is off.

List of root certificates for HTTPS server verifications

ssl.certificate_authorities: [“/etc/pki/root/ca.pem”]

Certificate for SSL client authentication

ssl.certificate: “/etc/pki/client/cert.pem”

Client Certificate Key

ssl.key: “/etc/pki/client/cert.key”