ElasticSearch 5.4.1 Cluster Configuration

I am getting below error while configuring ElasticSearch 5.4.1.

[root@ip-10-3-4-73 elasticsearch]# curl -XGET 'localhost:9200/_cluster/health?pretty'
{
"error" : {
"root_cause" : [
{
"type" : "master_not_discovered_exception",
"reason" : null
}
],
"type" : "master_not_discovered_exception",
"reason" : null
},
"status" : 503
}
[root@ip-10-3-4-73 elasticsearch]# curl -XGET 'localhost:9200'
{
"name" : "2ib0gzN",
"cluster_name" : "my-cluster",
"cluster_uuid" : "na",
"version" : {
"number" : "5.4.1",
"build_hash" : "2cfe0df",
"build_date" : "2017-05-29T16:05:51.443Z",
"build_snapshot" : false,
"lucene_version" : "6.5.1"
},
"tagline" : "You Know, for Search"
}

[root@ip-10-3-4-73 elasticsearch]# curl -XGET 'localhost:9200/_nodes/transport?pretty=1'
{
"_nodes" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"cluster_name" : "my-cluster",
"nodes" : {
"2ib0gzNzQ_K-METZvMERdA" : {
"name" : "2ib0gzN",
"transport_address" : "10.3.4.73:9300",
"host" : "10.3.4.73",
"ip" : "10.3.4.73",
"version" : "5.4.1",
"build_hash" : "2cfe0df",
"roles" : [
"master",
"data",
"ingest"
],
"transport" : {
"bound_address" : [
"[::]:9300"
],
"publish_address" : "10.3.4.73:9300",
"profiles" : { }
}
}
}
}

Can any one help ?

Hi,

Is this a single node cluster? What does the elasticsearch.yml look like?

For reference here: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-zen.html#master-election

Hi,

I am trying to setup 3 node cluster and my configuration is :

[root@ip-10-3-4-73 elasticsearch]# grep "^[^#;]" elasticsearch.yml
cluster.name: my-cluster
path.data: /data/data
path.logs: /data/logs
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ["10.3.0.217","10.3.2.163"]
discovery.zen.minimum_master_nodes: 2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.