At first, I have installed Elasticsearch of version 8.15.1 on my local machine by extracting tar.gz on Ubuntu 22.04. LTS. It is working fine. Then, I have added a cold node (also extracted from same .tar.gz). It is also working fine. Finally, I have tried to add a frozen node (also extracted from same .tar.gz) with
but I have got an error during running at first time:
[2024-09-30T21:29:08,851][ERROR][o.e.b.Elasticsearch ] [node-frozen] fatal exception while booting Elasticsearchjava.io.UncheckedIOException: java.io.IOException: Not enough free space [55991361536] for cache file of size [131852140544] in path [/usr/bin/elasticsearch-node-frozen/elasticsearch-8.15.1/data]
at org.elasticsearch.blobcache@8.15.1/org.elasticsearch.blobcache.shared.SharedBlobCacheService.<init>(SharedBlobCacheService.java:378)
at org.elasticsearch.blobcache@8.15.1/org.elasticsearch.blobcache.shared.SharedBlobCacheService.<init>(SharedBlobCacheService.java:338)
at org.elasticsearch.searchablesnapshots@8.15.1/org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshots.createComponents(SearchableSnapshots.java:335)
at org.elasticsearch.server@8.15.1/org.elasticsearch.node.NodeConstruction.lambda$construct$13(NodeConstruction.java:868)
at org.elasticsearch.server@8.15.1/org.elasticsearch.plugins.PluginsService.lambda$flatMap$1(PluginsService.java:253)
See logs for more details.
ERROR: Elasticsearch did not exit normally - check the logs at /usr/bin/elasticsearch-node-frozen/elasticsearch-8.15.1/logs/elasticsearch.log
ERROR: Elasticsearch died while starting up, with exit code 1
The node has been not added. When I am trying to run it again with the same command
I am getting an error ERROR: Skipping security auto configuration because it appears that the node is not starting up for the first time. The node might already be part of a cluster and this auto setup utility is designed to configure Security for new clusters only., with exit code 80.
My questions are:
Why does the frozen node need ca. 132 GB??? (I have only ca. 56 GB of free memory and I have no big data.)
How can I resolve the problem??? (I cannot increase hard disc memory on my machine.) What can I do to re-add the frozen node with resources I have?
It pre-allocates all the space it needs for its cache, which by default is 90% of the disk. See these docs for more information, particularly about the xpack.searchable.snapshot.shared_cache.size setting.
ERROR: Skipping security auto configuration because it appears that the node is not starting up for the first time. The node might already be part of a cluster and this auto setup utility is designed to configure Security for new clusters only., with exit code 80
I think, I should remove this frozen node in the cluster to start it at the first time to re-add it to the cluster again... But I don't know how.
Yes I think it'd be simplest to start again from scratch with this node - at least, delete the contents of its data path and revert the contents of its config path back to how they were when you unpacked it.
The problem is the elasticsearch-node-frozen node is not in the list of running processes obtained with $ ps aux. For example, the other elasticsearch-node-cold node is running and I can see its ID. And I do not know, how I can re-install or re-add the the elasticsearch-node-frozen node with the changed elasticsearch.yml setting. Please help.
Looks like you have two separate Elasticsearch nodes here. You can get the PIDs of the main node processes with GET _cat/nodes?h=name,ip,pid&v - that's the one to kill, it should clean up the other two.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.