Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598944 - =app-misc/elasticsearch-2.4.1 DATA_DIR ignored
Summary: =app-misc/elasticsearch-2.4.1 DATA_DIR ignored
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-04 16:22 UTC by Oleh
Modified: 2017-01-05 17:01 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (es_data_dir_diff.patch,478 bytes, patch)
2016-11-04 16:24 UTC, Oleh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleh 2016-11-04 16:22:12 UTC
as in Summary.
elasticsearch has DATA_DIR specified in /etc/conf.d/elasticsearch, which is ignored if uncommented and set to other place. It keeps write data into /var/lib/elasticsearch

Reproducible: Always

Steps to Reproduce:
1. mkdir -m 0777 /home/oleg/elasticsearch
2. modify /etc/conf.d/elasticsearch to use DATA_DIR=/home/oleg/elasticsearch
3. rc-update add elasticsearch default
4. rc
5. notice that no data is in /home/oleg/elasticsearch ever created
6. notice that /var/lib/elasticsearch data created and used.
Comment 1 Oleh 2016-11-04 16:23:57 UTC
actual problem is in /etc/init.d/elasticsearch
DATA_DIR="${ES_BASE_PATH}/data"
Comment 2 Oleh 2016-11-04 16:24:29 UTC
Created attachment 452384 [details, diff]
patch
Comment 3 Tomáš Mózes 2016-12-18 11:48:05 UTC
https://github.com/gentoo/gentoo/pull/3158
Comment 4 Tomáš Mózes 2017-01-05 17:01:17 UTC
Should work with 5.1.1, please give it a try.