opendistro-for-elasticsearch / performance-analyzer

📈 OpenDistro Performance Analyzer
https://opendistro.github.io/
Apache License 2.0
146 stars 49 forks source link

scary messages on startup #311

Open celesteking opened 3 years ago

celesteking commented 3 years ago

These errors are shown using default config. This is wrong. There should be no errors output to user because user would be thinking there's some sort of problem, while it seems there's none.

opendistro-performance-analyzer-1.13.0.0-1.noarch

Jun  7 15:28:27 dev9 performance-analyzer-agent-cli[9583]: ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set s
ystem property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: 15:28:28.875 [pa-reader] ERROR com.amazon.opendistro.elasticsearch.performanceanalyzer.reader.ReaderMetricsProcessor - Error reading file '/usr/share/elasticsearch/data/batch_me
trics_enabled.conf': java.nio.file.NoSuchFileException: /usr/share/elasticsearch/data/batch_metrics_enabled.conf
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: Jun 07, 2021 3:28:28 PM org.jooq.tools.JooqLogger info
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: INFO:
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]:                                       
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@@@@@@@  @@        @@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@@@@@@@@@@@        @@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@@@@@@@  @@  @@    @@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@  @@@@  @@  @@    @@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@        @@        @@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@        @@        @@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@    @@  @@  @@@@  @@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@        @@  @  @  @@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@        @@        @@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@@@@@@@@@@@@@@  @@@@@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  Thank you for using jOOQ 3.10.8
Jun  7 15:28:28 dev9 performance-analyzer-agent-cli[9583]:                                       
Jun  7 15:28:29 dev9 performance-analyzer-agent-cli[9583]: 15:28:29.521 [pa-reader] ERROR com.amazon.opendistro.elasticsearch.performanceanalyzer.reader.ReaderMetricsProcessor - Error reading file '/usr/share/elasticsearch/data/batch_me
trics_enabled.conf': java.nio.file.NoSuchFileException: /usr/share/elasticsearch/data/batch_metrics_enabled.conf
Jun  7 15:28:31 dev9 performance-analyzer-agent-cli[9583]: Jun 07, 2021 3:28:31 PM org.jooq.tools.JooqLogger info
Jun  7 15:28:31 dev9 performance-analyzer-agent-cli[9583]: INFO: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun  7 15:28:31 dev9 performance-analyzer-agent-cli[9583]: Jun 07, 2021 3:28:31 PM org.jooq.tools.JooqLogger info
Jun  7 15:28:31 dev9 performance-analyzer-agent-cli[9583]: INFO: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun  7 15:28:31 dev9 performance-analyzer-agent-cli[9583]: Jun 07, 2021 3:28:31 PM org.jooq.tools.JooqLogger info
Jun  7 15:28:31 dev9 performance-analyzer-agent-cli[9583]: INFO: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse

Thanks.

celesteking commented 3 years ago

Guys, have you actually tested this before rolling out?

Jun  7 15:59:11 dev9 performance-analyzer-agent-cli[9987]: 15:59:11.641 [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
Jun  7 15:59:13 dev9 performance-analyzer-agent-cli[9987]: 15:59:13.925 [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
Jun  7 15:59:14 dev9 systemd-entrypoint[9986]: WARNING: An illegal reflective access operation has occurred
Jun  7 15:59:14 dev9 systemd-entrypoint[9986]: WARNING: Illegal reflective access by com.amazon.opendistro.elasticsearch.performanceanalyzer.collectors.MasterServiceEventMetrics (file:/usr/share/elasticsearch/plugins/opendistro-performance-analyzer/opendistro-performance-analyzer-1.13.0.0.jar) to field java.util.concurrent.ThreadPoolExecutor.workers
Jun  7 15:59:14 dev9 systemd-entrypoint[9986]: WARNING: Please consider reporting this to the maintainers of com.amazon.opendistro.elasticsearch.performanceanalyzer.collectors.MasterServiceEventMetrics
Jun  7 15:59:14 dev9 systemd-entrypoint[9986]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Jun  7 15:59:14 dev9 systemd-entrypoint[9986]: WARNING: All illegal access operations will be denied in a future release
Jun  7 15:59:14 dev9 systemd[1]: Started Elasticsearch.

Looks like systemctl stop opendistro-performance-analyzer is the only viable solution.

celesteking commented 3 years ago

It's not, it's still polluting main ES log. This is ridiculous. I didn't ask for it and I'd like to get rid of it. This is a default config that was supposed to come with sane defaults, not debugging info that has zero relevance to me.

[2021-06-07T16:36:05,527][INFO ][stats_log                ] [xx] ------------------------------------------------------------------------
Program=PerformanceAnalyzerPlugin
rca-version=0.0.1
Metrics=
StartTime=0.000
EndTime=Mon, 07 Jun 2021 16:36:05 CDT
Time=1623101765526 msecs
Timing=total-time:1.623101765526E12/1
Counters=
EOE
[2021-06-07T16:36:05,527][INFO ][stats_log                ] [xx] ------------------------------------------------------------------------
Program=PerformanceAnalyzerPlugin
rca-version=0.0.1
Metrics=
StartTime=0.000
EndTime=Mon, 07 Jun 2021 16:36:05 CDT
Time=1623101765527 msecs
Timing=total-time:1.623101765527E12/1
Counters=
EOE
daitq1998 commented 3 years ago

how to wish fix it ??

Jun 25 10:24:06 elk systemd-entrypoint[11403]: WARNING: An illegal reflective access operation has occurred
Jun 25 10:24:06 elk systemd-entrypoint[11403]: WARNING: Illegal reflective access by com.amazon.opendistro.elasticsearch.performanceanalyzer.collectors.MasterServiceEventMetrics (file:/usr>
Jun 25 10:24:06 elk systemd-entrypoint[11403]: WARNING: Please consider reporting this to the maintainers of com.amazon.opendistro.elasticsearch.performanceanalyzer.collectors.MasterServic>
Jun 25 10:24:06 elk systemd-entrypoint[11403]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Jun 25 10:24:06 elk systemd-entrypoint[11403]: WARNING: All illegal access operations will be denied in a future release
Jun 25 10:24:06 elk systemd[1]: Started Elasticsearch.