I have 2 Elasticsearch clusters they are backed up to the same NFS share, but in different directories and the elasticsearch user on these VMs has different UIDs and GIDs For example, for the corn project, the elasticsearch user has the following id elasticsearch: x: 1000: 1000 and for the project a bald pubis is elasticsearch: x: 997: 993
and I have a separate Elasticsearch cluster that I use to check recovery from backups, on it the Elasticsearch user has the following id elasticsearch: x: 1000: 1000 and when registering a snapshot of the repository for the corn project there are no problems (because UID and GID are similar), but when registering a snapshot of the repository for the bald pubic project, there are problems, permission denied (Since the UID and GID are different)
Now I have a question, is it possible to somehow fix this without changing the GID and UID on the clusters?
Yes, NFS lets you configure a mapping for IDs so they can vary between the server and the various clients. I'm not familiar with the details of how to do this, nor do I know of any great docs on the subject, I just know that it's possible. I'd suggest trying to do that and maybe asking on a more NFS-focussed forum if you get stuck. Elasticsearch isn't doing anything magical with the repository, it's just reading and writing files, so the problems you're facing seem to be elsewhere in your system and the folks with the expertise to help you solve them might not visit this forum much.
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.