You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Yi Pan (Data Infrastructure) (JIRA)" <ji...@apache.org> on 2018/02/02 01:26:00 UTC

[jira] [Created] (SAMZA-1581) Default metrics reporter serde is set for task-level API wikipedia-feed example not for high-level API wikipedia-application example

Yi Pan (Data Infrastructure) created SAMZA-1581:
---------------------------------------------------

             Summary: Default metrics reporter serde is set for task-level API wikipedia-feed example not for high-level API wikipedia-application example
                 Key: SAMZA-1581
                 URL: https://issues.apache.org/jira/browse/SAMZA-1581
             Project: Samza
          Issue Type: Bug
    Affects Versions: 0.14.0
            Reporter: Yi Pan (Data Infrastructure)


Hi,

Thank you Yi, what you mentioned seemed to be the issue. Configuring the
metrics serdes fixed the metrics output. The reason I had not added them
initially was because the wikipedia-application.properties file in the
hello-samza example here: (
[https://github.com/apache/samza-hello-samza/blob/master/src/main/config/wikipedia-application.properties]
)
does not have them configured.

Using that configuration for the wikipedia-application demo did not produce
metrics. But, surprisingly, not configuring the serdes for the
wikipedia-feed demo either (which uses the low-level API) worked fine,
which is why I was wondering if metrics is configured differently when
using the high-level API. I've linked the two demos below, with the
.properties files used for each and the DEBUG logs generated.

[https://github.com/srujun/srujun.github.io/tree/master/files/samza/wikipedia-feed]
(metrics works as expected, emitting JSON-encoded messages to kafka.metrics)
[https://github.com/srujun/srujun.github.io/tree/master/files/samza/wikipedia-application]
(metrics not working unless serdes are also configured)

From what I can see, there are metrics serialization errors in the
wikipedia-application logs, as expected. But no such issue for
wikipedia-feed, even though no serde was configured. Is there some other
issue here?

Thank you again.
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)