Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

plugin must search dynamically ES data path folder from ES config file #206

Open
JujuElk opened this issue Sep 11, 2020 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@JujuElk
Copy link

JujuElk commented Sep 11, 2020

Hello,

Performance-analyzer is searching es data path folder in $ES_HOME/data. But some users put es data folder in another path and specified this new path in path.data in es config file. You should get the good path from it, and not get $ES_HOME/data in your code. All users who made the choice to change the path data will face a crash.

Thanks,
Julien Elk

@sendkb sendkb added the enhancement New feature or request label Sep 24, 2020
@Darkentik
Copy link

I'm facing the same issue.
Using Saltstack for automation i installed opendistro via Debian package and can not start it, because the plugin performanceanalyzer gives me the error:
Jun 10 15:54:59 odistroserver01 performance-analyzer-agent-cli[33252]: 15:54:59.835 [pa-reader] ERROR com.amazon.opendistro.elasticsearch.performanceanalyzer.reader.ReaderMetricsProcessor - Error reading file '/usr/share/elasticsearch/data/batch_metrics_enabled.conf': java.nio.file.NoSuchFileException: /usr/share/elasticsearch/data/batch_metrics_enabled.conf

My elasticsearch.yml got this working dir:
path.data: /var/lib/elasticsearch

But it seems that the plugin performanceanalyzer does not recognize it.

Thanks,
Darkentik

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants