[
https://issues.apache.org/jira/browse/FLINK-23952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17405378#comment-17405378
]
Leonid Ilyevsky edited comment on FLINK-23952 at 8/26/21, 5:21 PM:
-------------------------------------------------------------------
[~chesnay] Thanks for pointing this out.
I added it to the classpath some time ago, because without it I was getting the
ClassNotFound exception, and a message saying that reporting would be turned
off.
Just tested it again without that jar:
ERROR org.apache.flink.runtime.metrics.ReporterSetup - Could not instantiate
metrics reporter prom. Metrics might not be exposed/reported.
java.lang.ClassNotFoundException:
org.apache.flink.metrics.prometheus.PrometheusReporter
at
jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
~[?:?]
at
jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
at java.lang.Class.forName0(Native Method) ~[?:?]
at java.lang.Class.forName(Class.java:315) ~[?:?]
at
org.apache.flink.runtime.metrics.ReporterSetup.loadViaReflection(ReporterSetup.java:388)
~[flink-dist_2.12-1.13.2.jar:1.13.2]
at
org.apache.flink.runtime.metrics.ReporterSetup.loadReporter(ReporterSetup.java:342)
~[flink-dist_2.12-1.13.2.jar:1.13.2]
at
org.apache.flink.runtime.metrics.ReporterSetup.setupReporters(ReporterSetup.java:286)
~[flink-dist_2.12-1.13.2.jar:1.13.2]
at
org.apache.flink.runtime.metrics.ReporterSetup.fromConfiguration(ReporterSetup.java:167)
~[flink-dist_2.12-1.13.2.jar:1.13.2]
at
org.apache.flink.runtime.entrypoint.ClusterEntrypoint.createMetricRegistry(ClusterEntrypoint.java:367)
~[flink-dist_2.12-1.13.2.jar:1.13.2]
at
org.apache.flink.runtime.entrypoint.ClusterEntrypoint.initializeServices(ClusterEntrypoint.java:315)
~[flink-dist_2.12-1.13.2.jar:1.13.2]
at
org.apache.flink.runtime.entrypoint.ClusterEntrypoint.runCluster(ClusterEntrypoint.java:239)
~[flink-dist_2.12-1.13.2.jar:1.13.2]
at
org.apache.flink.runtime.entrypoint.ClusterEntrypoint.lambda$startCluster$1(ClusterEntrypoint.java:189)
~[flink-dist_2.12-1.13.2.jar:1.13.2]
at
org.apache.flink.runtime.security.contexts.NoOpSecurityContext.runSecured(NoOpSecurityContext.java:28)
[flink-dist_2.12-1.13.2.jar:1.13.2]
at
org.apache.flink.runtime.entrypoint.ClusterEntrypoint.startCluster(ClusterEntrypoint.java:186)
[flink-dist_2.12-1.13.2.jar:1.13.2]
at
org.apache.flink.runtime.entrypoint.ClusterEntrypoint.runClusterEntrypoint(ClusterEntrypoint.java:600)
[flink-dist_2.12-1.13.2.jar:1.13.2]
at
org.apache.flink.runtime.entrypoint.StandaloneSessionClusterEntrypoint.main(StandaloneSessionClusterEntrypoint.java:59)
[flink-dist_2.12-1.13.2.jar:1.13.2]
2021-08-26 13:16:28.693 [main] INFO
org.apache.flink.runtime.metrics.MetricRegistryImpl - No metrics reporter
configured, no metrics will be exposed/reported.
was (Author: lilyevsky):
[~chesnay] Thanks for pointing this out.
I added it to the classpath some time ago, because without it I was getting the
ClassNotFound exception, and a message saying that reporting would be turned
off.
Just tested it again without that jar:
ERROR org.apache.flink.runtime.metrics.ReporterSetup - Could not instantiate
metrics reporter prom. Metrics might not be exposed/reported.
java.lang.ClassNotFoundException:
org.apache.flink.metrics.prometheus.PrometheusReporter
at
jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
~[?:?]
at
jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
~[?:?]
> Taskmanager fails to start complaining about missing configuration option
> -------------------------------------------------------------------------
>
> Key: FLINK-23952
> URL: https://issues.apache.org/jira/browse/FLINK-23952
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Configuration
> Affects Versions: 1.13.2
> Reporter: Leonid Ilyevsky
> Priority: Major
> Attachments: flink-conf.yaml, taskmanager.log, taskmanager_start.txt
>
>
> Taskmanager now fails to start, after I upgraded to 1.13.2. It worked fine in
> 1.13.1.
> It suddenly started complaining about missing configuration options that are
> not really required, according to documentation. When I tried to set the one
> it complained about, it started complaining about another one.
>
> Please see attached files:
> taskmanager_start.txt - actual command that is used to start the program
> flink-conf.yaml - configuration file
> taskmanager.log - logfile where you can see the exception
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)