Lab 4.4 Multi Cluster Set Ups Elasticsearch Engineer II

Hi

I’m in the lab for Elasticsearch Engineer II module 4.4 Multi cluster set ups

I’m trying to run the curl command, I've tried it on server6 and the other servers too:

curl -X POST "http://server6:9200/_licence/start_trial?acknowlage=true"

Then

curl -XPUT "http://server6:9200/comments/_doc/1?pretty" -H "Content-Type: application/json" -i -d '
{"username": "paolo", "movie": "Star Trek IV: The Voyage Home","comment": "Not my favorite star trek movie :(", "rating": 2}'

curl -XPUT "http://server6:9200/comments/_doc/2?pretty" -H "Content-Type: application/json" -i -d '
{"username": "harrison", "movie": "Blade Runner","comment": "I hope they do not remake this classic movie", "rating": 4}'

The error I’m getting is:

elastic@ip-172-31-15-225:~ ssh server6Last login: Tue Nov 10 16:00:38 2020 from ip-172-18-0-1.eu-central-1.compute.internal[elastic@server6 ~] curl -XPUT "http://server6:9200/comments/_doc/1?pretty" -H "Content-Type: application/json" -i -d '> {"username": "paolo", "movie": "Star Trek IV: The Voyage Home","comment": "Not my favorite star trek movie :(", "rating": 2}'curl: (7) Failed connect to server6:9200; Connection refused

Looks like a connection is failing on port:9200, but I'm not sure how to handle it?

Hi Hicks,
it seems Elasticsearch is either not running or not bind to server6. If you want, I can take a look. Resume your lab and send me (via private message) the instance address/ip.

If you want a more synchronized communication, feel free to join us at http://ela.st/slack -> #training .