Skip to content

Commit 2d0a4af

Browse files
Update installing-stack-demo-self.asciidoc to mitigate error-handling issue. update variable on tail command (#3015)
* Update installing-stack-demo-self.asciidoc Adding an Important clarification. The enrollment script fails without proper error handling if the second node is not able to access the first node. the elasticsearch.yml ends up modified and the enrollment script is unable to be reran without undoing all the changes. Reminder added to ensure network access is available before proceeding. second. the tail command is incorrect unless the cluster.name is also elasticsearch-demo. this value defaults to cluster.name * nit to trigger CI --------- Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
1 parent a78c707 commit 2d0a4af

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/en/install-upgrade/installing-stack-demo-self.asciidoc

+8-2
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,12 @@ Note the following tips about enrollment tokens:
305305
====
306306

307307
. In the terminal shell for your second {es} node, pass the enrollment token as a parameter to the `elasticsearch-reconfigure-node` tool:
308+
[IMPORTANT]
309+
====
310+
Be sure the second node is able to access the first node before running the following command. You can test this by running a curl command to the first node at port 9200.
311+
312+
If you are unable to access the first node, modify your network configuration before proceeding.
313+
====
308314
+
309315
[source,"shell"]
310316
----
@@ -352,11 +358,11 @@ network.host: 10.128.0.132
352358
sudo systemctl start elasticsearch.service
353359
----
354360

355-
. **Optionally**, to view the progress as the second {es} node starts up and connects to the first {es} node, open a new terminal into the second node and `tail` the {es} log file:
361+
. **Optionally**, to view the progress as the second {es} node starts up and connects to the first {es} node, open a new terminal into the second node and `tail` the {es} log file. Be sure to replace <CLUSTER.NAME> with the cluster.name you set earlier in the first node's elasticsearch.yml:
356362
+
357363
[source,"shell"]
358364
----
359-
sudo tail -f /var/log/elasticsearch/elasticsearch-demo.log
365+
sudo tail -f /var/log/elasticsearch/<CLUSTER.NAME>.log
360366
----
361367
+
362368
Notice in the log file some helpful diagnostics, such as:

0 commit comments

Comments
 (0)