I am having the scenario two data folder present. I have accidently changed the path.data in elasticsearch.yml file. So, Two data folder present, one with old data and another with new data.
I need to merge into one data folder. Since, I am new to elasticsearch, any help would be appreciated.
This is not possible, when you changed the data folder you basically recreated the node, you can't manually move files in the elasticsearch data folder.
The best option is to start your elasticsearch with the configuration using one of the data folders, take a snapshot of the data, stop the elasticsearch, and start it again with the data folder that you want to use, configure the snapshot repository and restore it.
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.