Skip to content

Why is the configuration location '/usr/share/elasticsearch/config', not '/etc/elasticsearch' ? #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
erictt opened this issue Nov 15, 2016 · 3 comments

Comments

@erictt
Copy link

erictt commented Nov 15, 2016

I've checked the document : https://www.elastic.co/guide/en/elasticsearch/reference/5.0/deb.html#deb-layout

It says, default configuration locations is /etc/elasticsearch, but why is it deferent in Docker?
I didn't see any updates in the Dockerfile.

And the tricky problem is x-pack configurations doesn't work if i put them under /usr/share/elasticsearch/config.

@yosifkit
Copy link
Member

That only happens when using the init script:

NAME=elasticsearch
...
CONF_DIR=/etc/$NAME
...
DAEMON_OPTS="-d -p $PID_FILE -Edefault.path.logs=$LOG_DIR -Edefault.path.data=$DATA_DIR -Edefault.path.conf=$CONF_DIR"`

We run elasticsearch directly so it runs in the foreground, since there is no init system running in the container. Thus, we just get the default config directory in the install directory.

@tianon
Copy link
Member

tianon commented Oct 4, 2017

This image is officially deprecated in favor of upstream's images (see https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html).

For more information, please see #160, docker-library/docs#842, and docker-library/docs#945.

This image has been deprecated in favor of the official elasticsearch image provided and maintained by elastic.co. The upstream images are available to pull via docker.elastic.co/elasticsearch/elasticsearch:[version] like 5.4.2. The images found here will receive no further updates once the 5.6.0 release is available upstream. Please adjust your usage accordingly.

Elastic provides open-source support for Elasticsearch via the elastic/elasticsearch GitHub repository and the Docker image via the elastic/elasticsearch-docker GitHub repository, as well as community support via its forums.

Thanks!

@tianon tianon closed this as completed Oct 4, 2017
@unavailabl3
Copy link

unavailabl3 commented Apr 3, 2020

If your Elasticsearch can't find hunspell dictionaries because there is no /etc/elasticsearch folder - just create folder with your hands sudo mkdir -p /etc/elasticsearch/hunspell
I don't know why, but ES is looking for hunspell only in /etc/elasticsearch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants