[elasticsearch] Cannot run a single node cluster
See original GitHub issueChart 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:
- Created 4 years ago
- Comments:21 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.@gilperme @DaimyGovaert for me, setting the value to null did the trick: