i created a new data dir (/data), stopped elasticsearch, edited elasticsearch.yml (path.data: /data) and started elasticsearch again. user/group rights are the same as /var/lib/elasticsearch.
now when i start elasticsearch i cant connect anymore (as user elastic via kibana, curl -XGET etc.). I got a "failed to authenticate user".
I changed path.data back to default dir. Now elasticsearch works as expected.
You need to move the actual data - the directories and files - from the default to the new path.
That's where Elasticsearch stores the auth details in the native realm.
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.