Why we have to generate Token for node?

Hello
I installed Elasticsearch and set security for https setting.
I used ubuntu 20.04 version. Elasticsearch 8.3.2 version
Then,

--> this page, we have to make token for node.

"bin/elasticsearch-create-enrollment-token -s node"

--> Then i have error in this command.

warning: ignoring JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64; using bundled JDK
ERROR: Failed to determine the health of the cluster. Unexpected http status [503]

--> This is error message.

  1. Why we have to generate Token for node?
  2. Why i have this error?
  3. Can i use jvm11 version for elasticsearch 8.3.2 version?

Thank u

You don't have to generate an enrollment token. This is just the easiest (in most cases) built-in way to add new nodes to your cluster that have security configured automatically.

Because your first node did not start successfully or is not configured correctly. The node logs would tell you what is wrong.

No, see Support Matrix | Elastic

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