question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[elasticsearch] Cannot run a single node cluster

See original GitHub issue

Chart version:

7.4.0

Kubernetes version:

1.14.0

Kubernetes provider:

on-premise

Helm Version:

2.X

Describe the bug:

As a developper, I want to run a simple elasticsearch cluster, with a single node.

Steps to reproduce:

As indicated here https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html, values.yml:

esConfig:
  elasticsearch.yml: |
    discovery:
      type: single-node
      seed_hosts: ""

Expected behavior:

A single pod should run.

Provide logs and/or server output (if relevant):

This chart is hardcoding the setting cluster.initial_master_nodes which throw the exception

stacktrace": ["org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: setting [cluster.initial_master_nodes] is not allowed when [discovery.type] is set to [single-node]"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

9reactions
Crazybuscommented, Oct 4, 2019

Another thing worth checking. Can you show the output of kubectl get pv. If you previously had a 3 node cluster and didn’t delete the volumes after them being used the one node cluster will start up expecting to find 2 more nodes.

8reactions
evtimmycommented, Feb 23, 2021

@gilperme @DaimyGovaert for me, setting the value to null did the trick:

  extraEnvs:
  - name: discovery.type
    value: single-node
  - name: cluster.initial_master_nodes
    value: null
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to start Elasticsearch as single node and for developing
This node used to belong to a three-node cluster, so you can't start it up on its own any more. The simplest solution,...
Read more >
How to run an Elasticsearch 7 single node cluster for local ...
To run the Elasticsearch 7 Docker image in development mode, you should set discovery.type to single-node . At startup, the bootstrap checks are...
Read more >
ElasticSearch start up error - the default discovery settings are ...
I am adding my answer from docker container perspective. I initially tried running 3 nodes of elasticsearch in a same cluster ...
Read more >
Installing and configuring your cluster | Elasticsearch Server
There are a few steps required to install Elasticsearch, which we will ... The two values that we cannot change at runtime are...
Read more >
Troubleshooting Amazon OpenSearch Service
A red cluster status means that at least one primary shard and its replicas are not allocated to a node. OpenSearch Service keeps...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found