Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not set node role to coordinating only on the command line #90578

Closed
hillar opened this issue Oct 1, 2022 · 1 comment
Closed

can not set node role to coordinating only on the command line #90578

hillar opened this issue Oct 1, 2022 · 1 comment
Labels
>bug needs:triage Requires assignment of a team area label

Comments

@hillar
Copy link

hillar commented Oct 1, 2022

Elasticsearch Version

8.*

Installed Plugins

na

Java Version

bundled

OS Version

na

Problem Description

bin/elasticsearch -Enode.roles=''

ERROR: setting [node.roles] must not be empty

https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#coordinating-node

This means that a node that has an explicit empty list of roles via node.roles will only act as a coordinating node

Steps to Reproduce

bin/elasticsearch -Enode.roles=''

ERROR: setting [node.roles] must not be empty

Logs (if relevant)

No response

@hillar hillar added >bug needs:triage Requires assignment of a team area label labels Oct 1, 2022
@slobodanadamovic
Copy link
Contributor

@hillar To set node's role as coordinating only you have to pass -Enode.roles="[]". This is possible since version 8.2.0 (see #85186). If you are using version <=8.2.0, I suggest updating to the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug needs:triage Requires assignment of a team area label
Projects
None yet
Development

No branches or pull requests

2 participants