As I said in the previous post, I have copied the data folder from old version.
While starting the elasticsearch I was getting "location is not writable....." error message..
[
default index path in old version is : data/elasticsearchCluster/nodes/0/indices, and that of new version is : data/nodes/0/indices
]
So I deleted the data folder, and tried to restart the elasticsearch, then the error gone and new index created on path:data/nodes/0/indices..
I have back up of my indeces on my old version's folder...PFB, the directory structure:
[root@localhost elasticsearch]# ls -l
total 32268
drwxrwxr-x 3 elasticsearch elasticsearch 4096 Jan 11 02:24 backup
drwxrwxr-x 9 elasticsearch elasticsearch 4096 Jan 11 22:38 elasticsearch-2.3.3
drwxrwxr-x 10 elasticsearch elasticsearch 4096 Feb 20 01:57 elasticsearch-5.0.2
-rwxrwxr-x 1 elasticsearch elasticsearch 18012 Aug 9 2016 hs_err_pid32532.log
[root@localhost elasticsearch]#