performance-analyzer icon indicating copy to clipboard operation
performance-analyzer copied to clipboard

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

Open JujuElk opened this issue 4 years ago • 1 comments

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

JujuElk avatar Sep 11 '20 09:09 JujuElk

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

Darkentik avatar Jun 10 '21 13:06 Darkentik