Im trying to enable clustering as per:
I get this when creating a token:
root@elk-1 ~ # /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node
ERROR: Failed to determine the health of the cluster.
However, this works:
root@elk-1 ~ # curl -X GET "localhost:9200/_cluster/health?pretty"
{
"cluster_name" : "my-cluster",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 10,
"active_shards" : 10,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 1,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 90.9090909090909
}
I have tried changing a few things in elasticsearch.yml, but no luck. These include:
- disabling "cluster.initial_master_nodes"
- adding discovery.type: single-node
Doesnt seem to be much info out there on this issue. Any help much apprecietaed.