Unable to connect to Master node from Data node in ElasticSearch

1,543 views
Skip to first unread message

manoj kavali

unread,
Jun 28, 2019, 1:20:48 PM6/28/19
to Wazuh mailing list
Hi,
             I am unable to connect to master node from one of my data node. Below is error I see from elasticsearch.log

[2019-06-28T17:06:58,964][WARN ][o.e.c.c.ClusterFormationFailureHelper] [data1] master not discovered yet: have discovered []; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{data1}{rR43fnwoRCmahvOMz_2rhQ}{UE89ceEYTjeIx0dHLWL7iQ}{10.0.0.10}{10.0.0.10:9300}{ml.machine_memory=2011271168, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 1, last-accepted version 15 in term 1
[2019-06-28T17:07:08,966][WARN ][o.e.c.c.ClusterFormationFailureHelper] [data1] master not discovered yet: have discovered []; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{data1}{rR43fnwoRCmahvOMz_2rhQ}{UE89ceEYTjeIx0dHLWL7iQ}{10.0.0.10}{10.0.0.10:9300}{ml.machine_memory=2011271168, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 1, last-accepted version 15 in term 1

elasticsearch.yml file setup of my data1 node

# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
#cluster.name: ElasticSearch
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: data1
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
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
"elasticsearch.yml" 93L, 3007C
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: ["localhost", "10.0.0.10"]
#
# 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: ["master1"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes:
- master1
#
# 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 -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true
#logger.org.elasticsearch.cluster.coordination.ClusterBootstrapService: TRACE
#logger.org.elasticsearch.discovery: TRACE
#cluster.xpackEnable: false

Please help to me to fix this issue

Adri Valle

unread,
Jul 4, 2019, 3:13:01 AM7/4/19
to Wazuh mailing list

Hi Manoj,

In order to provide better assistance, could you please send me the master node configuration too?

If I clean the configuration that you send me, the result will be:

node.name: data1
node.master: false
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
"elasticsearch.yml" 93L, 3007C
network.host: ["localhost", "10.0.0.10"]
cluster.initial_master_nodes:
- master1

The configuration is wrong, for example, if this is a data node node.master: false should be node.data: true and this line "elasticsearch.yml" 93L, 3007C is wrong.

If you send me the master node configuration I could deploy an environment with your configuration and test it in order to fix the problem.

Regards,

Adri,

Reply all
Reply to author
Forward
0 new messages