ElasticSearch 7.0 Cluster Error

Hi Currently, I am currently configuration a 4 Node cluster with 1 Master and 3 data Nodes within a Cluster

When i do a curl http://:9200/_cat/nodes?v I am getting the following

{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}root@ip-10-7:/var/log/elasticsearch#

elasticsearch.yml File:

# Use a descriptive name for your cluster:
#
cluster.name: RMDEV
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: Master
node.data: False
node.master: true
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/lib/elasticsearch
#
# Path to log files:
#
path.logs: /var/log/elasticsearch
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: [_local_,_site_]
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
#The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["<LocalIP>:9200"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["<localIp>:9200"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3

Node Configuration File:

# Use a descriptive name for your cluster:
#
cluster.name: RMDEV
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node-3
node.data: true
node:master: False
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/lib/elasticsearch
#
# Path to log files:
#
path.logs: /var/log/elasticsearch
#
# ----------------------------------- 
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: [_local_,_site_]
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["<MASTER IP>:9200"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["<MASTER IP>:9200"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3
#
# For more information, consult the gateway module documentation.
#
# ---------------------------------- Various ------------------

error says it can't connect to host.
your config file has node.name=master is this valid systemname?
your network.host entry says [local,site] I think it should be ip address of your master server

and your curl command should be something like
curl -Xget http://:9200/_cluster/health?pretty

Hi,

this local,site binds both local 127.0.0.1 and the private IP address.

Special values for network.host edit

The following special values may be passed to network.host :

_[networkInterface]_ Addresses of a network interface, for example _en0_ .
_local_ Any loopback addresses on the system, for example 127.0.0.1 .
_site_ Any site-local addresses on the system, for example 192.168.0.1 .
_global_ Any globally-scoped addresses on the system, for example 8.8.8.8 .

Can you share the log messages from this node? They should be describing why the master is not being discovered in more detail.

Got it working i took out :9200 out of the seed discovery

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