Thank you for your reply. I have a local user/group 'elastic/elastic' and the full permission assigned to the following directories:
path.data: /u001/elastic/data/elasticsearch
path.logs: /u001/elastic/log/elasticsearch
I wanted to use the above location as path instead of the default directories.
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
Whenever I change the path in the elasticsearch.yml file the the elasticsearch crashes with the message **Main PID: 42859 (code=exited, status=1/FAILURE)**.
I found that a user/group elasticsearch SSDPA created automatically with the installation of Elasticsearch.
Please correct me if I am wrong and share the correct steps with me e.g. should we assign the full permission to user/group elasticsearch SSDPA on the below directories:
path.data: /u001/elastic/data/elasticsearch
path.logs: /u001/elastic/log/elasticsearch
Because currently the local user/group 'elastic/elastic' has full permission assigned to the above directories.
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.