I downloaded elasticsearch-5.6.3 the other day and added it to a rails project. On this project I added full-text search.
Today I wanted to get the elasticsearch-head plugin but plugins aren't supported in this version so I git cloned git://github.com/mobz/elasticsearch-head.git and then opened index.html in my browser.
The top of my page says cluster health: not connected
.
I edited the elasticsearch.yml to uncomment and give names to both cluster.name and node.name. I can verify these were set at http://localhost:9200/.
What step am I missing to connect my cluster?
There are few things which you can check, with Elasticsearch 5.x.x version onwards you need to use Head plugin as a standalone server. To do so you can use the following steps (Considering you have installed via Git)
Also, in elastic search.yml file please add the following 2 properties if not added-
http.cors.enabled: true
http.cors.allow-origin: "*"
After adding these properties restart the elastic search and now you would be able to connect to the cluster via head.