I installed ElasticSearch using defaults. . I'd like to change path of the data and logs directories to other location than default location
Create new directory structure - e.g; > makdir /data/elkdata && makdir /data/elklogs
Navigate to the current Data Directory determined in step 1 and copy files to new location > cp -RP * /data/elakdata
Change ownership on new directory to elasticsearch > chown -R elasticsearch:elasticsearch /data/elkdata
Edit data path > vi /etc/elasticsearch/elasticsearch.yml
*Edit data parameter “path.data:” to “path.data:/data/elakdata
[root@915454-elastic3 data]# ll
total 36
drwxr-xr-x. 3 elasticsearch elasticsearch 4096 May 10 05:55 elkdata
drwxr-xr-x. 3 elasticsearch elasticsearch 4096 May 10 05:27 elklogs
drwx------. 2 root root 16384 Mar 4 15:23 lost+found
drwxr-xr-x. 8 mysql mysql 4096 May 9 01:21 mysql
drwxr-x---. 2 mysql mysql 4096 Jan 3 14:34 mysqllogs
drwxr-x--T. 2 mysql mysql 4096 May 9 01:21 mysqltmp
after that elastic search faild to start