# Why we have to generate Token for node?

**URL:** <https://discuss.elastic.co/t/why-we-have-to-generate-token-for-node/311615>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [August 8, 2022, 2:09am UTC](https://discuss.elastic.co/t/why-we-have-to-generate-token-for-node/311615 "2022-08-08T02:09:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellocomputer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hellocomputer/32/100718_2.png) [@hellocomputer](https://discuss.elastic.co/u/hellocomputer)\
**Post date:** [August 8, 2022, 2:09am UTC](https://discuss.elastic.co/t/why-we-have-to-generate-token-for-node/311615/1 "2022-08-08T02:09:13Z")

</div>

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

> **[Start the Elastic Stack with security enabled automatically | Elasticsearch...](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-stack-security.html#stack-security-certificates)**

--\> 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

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [August 9, 2022, 3:20am UTC](https://discuss.elastic.co/t/why-we-have-to-generate-token-for-node/311615/2 "2022-08-09T03:20:11Z")

</div>

> [@hellocomputer](#):
>
> Why we have to generate Token for node?

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.

> [@hellocomputer](#):
>
> Why i have this error?

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

> [@hellocomputer](#):
>
> Can i use jvm11 version for elasticsearch 8.3.2 version?

No, see [Support Matrix | Elastic](https://www.elastic.co/support/matrix#matrix_jvm)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 6, 2022, 3:20am UTC](https://discuss.elastic.co/t/why-we-have-to-generate-token-for-node/311615/3 "2022-09-06T03:20:51Z")

</div>

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