FLINK-7100 is about taskmanager metrics being registered twice, whereas here we're dealing with job metrics.

Do you have multiple sources? If so, do they have unique names?

On 20.03.2018 15:06, Fabian Hueske wrote:
Hi Pedro,

Can you reopen FLINK-7100 and post a comment with your error message and environment?

Thanks,
Fabian

2018-03-20 14:58 GMT+01:00 PedroMrChaves <pedro.mr.cha...@gmail.com <mailto:pedro.mr.cha...@gmail.com>>:

    Hello,

    I still have the same issue with Flink Version 1.4.2.

    java.lang.IllegalArgumentException: A metric named
    <hostname-anonyn>.taskmanager.6aa8d13575228d38ae4abdfb37fa229e.CDC.Source:
    EVENTS.1.numRecordsIn already exists
            at
    com.codahale.metrics.MetricRegistry.register(MetricRegistry.java:91)
            at
    
org.apache.flink.dropwizard.ScheduledDropwizardReporter.notifyOfAddedMetric(ScheduledDropwizardReporter.java:131)
            at
    
org.apache.flink.runtime.metrics.MetricRegistryImpl.register(MetricRegistryImpl.java:319)
            at
    
org.apache.flink.runtime.metrics.groups.AbstractMetricGroup.addMetric(AbstractMetricGroup.java:370)
            at
    
org.apache.flink.runtime.metrics.groups.AbstractMetricGroup.counter(AbstractMetricGroup.java:303)
            at
    
org.apache.flink.runtime.metrics.groups.AbstractMetricGroup.counter(AbstractMetricGroup.java:293)
            at
    
org.apache.flink.runtime.metrics.groups.OperatorIOMetricGroup.<init>(OperatorIOMetricGroup.java:40)
            at
    
org.apache.flink.runtime.metrics.groups.OperatorMetricGroup.<init>(OperatorMetricGroup.java:48)
            at
    
org.apache.flink.runtime.metrics.groups.TaskMetricGroup.addOperator(TaskMetricGroup.java:146)
            at
    
org.apache.flink.streaming.api.operators.AbstractStreamOperator.setup(AbstractStreamOperator.java:182)
            at
    
org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.setup(AbstractUdfStreamOperator.java:82)
            at
    
org.apache.flink.streaming.runtime.tasks.OperatorChain.<init>(OperatorChain.java:136)
            at
    
org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:231)
            at
    org.apache.flink.runtime.taskmanager.Task.run(Task.java:718)
            at java.lang.Thread.run(Thread.java:748)



    -----
    Best Regards,
    Pedro Chaves
    --
    Sent from:
    http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
    <http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/>



Reply via email to