In my local elastic setup, if I set the setting
discovery.zen.ping.multicast.enabled: false
Elastic is not coming up.
After checking https://github.com/elastic/elasticsearch/issues/22909, I removed the setting.
Now, how to make the single node cluster?
Below are my elasticsearch.yml contents.
cluster.name: my_cluster
node.name: node-1
If try to access any index with out cluster.name appended it is working.
However if I append it, then I am getting index not found error.
What are the configuration changes need to be done, in order to access the index with cluster.name appended, any information is helpful.
My use case is to check my application how does it fair with cluster queries.
My Shards count is default of 5.
I am using ELK Version:5.4.0
Below is my cluster health report
curl -XGET http://localhost:9200/_cluster/health?pretty=true
{
"cluster_name" : "my_cluster",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 5,
"active_shards" : 5,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 5,
"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" : 50.0
}
I need to make single node cluster up and running for local testing purpose.
After checking this link https://stackoverflow.com/questions/19967472/elasticsearch-unassigned-shards-how-to-fix, I turned the cluster state from yellow to green by executing the below
curl -XPUT 'localhost:9200/_settings' -d '
{
"index" : {
"number_of_replicas" : 0
}
}'
Below is my latest cluster state,
curl -XGET http://localhost:9200/_cluster/health?pretty=true
{
"cluster_name" : "my_cluster",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 5,
"active_shards" : 5,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"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" : 100.0
}
Still I am unable to access the index with cluster.name prefixed.
http://127.0.0.1:9200/my_cluster:hello_cluster/
I am new to ELASTIC, am I doing some thing incorrect here?