Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encounter NoSuchMethodException while setting metricsEnabledDimensions in properties file #692

Open
starrlingo opened this issue Feb 21, 2020 · 1 comment

Comments

@starrlingo
Copy link

I'm trying to set the metricsEnabledDimensions in .properties file as follows.
metricsEnabledDimensions = Operation, ShardId

However, the KCL consumer application throws NoSuchMethodException:

2020-02-21 07:46:42,225 [main] WARN s.a.k.multilang.config.RetrievalMode [NONE] - Some polling properties have been set, defaulting to polling. To switch to Fanout either add RetrievalMode=FANOUT to your properties or remove the any configuration for polling. java.lang.RuntimeException: java.lang.NoSuchMethodException: software.amazon.kinesis.metrics.MetricsConfig.metricsEnabledDimensions(java.util.HashSet) at software.amazon.kinesis.multilang.config.ConfigurationSettableUtils.resolveFields(ConfigurationSettableUtils.java:96) at software.amazon.kinesis.multilang.config.MultiLangDaemonConfiguration.resolveFields(MultiLangDaemonConfiguration.java:315) at software.amazon.kinesis.multilang.config.MultiLangDaemonConfiguration.resolvedConfiguration(MultiLangDaemonConfiguration.java:384) at software.amazon.kinesis.multilang.config.MultiLangDaemonConfiguration.build(MultiLangDaemonConfiguration.java:391) at software.amazon.kinesis.multilang.MultiLangDaemon.buildScheduler(MultiLangDaemon.java:120) at software.amazon.kinesis.multilang.MultiLangDaemon.main(MultiLangDaemon.java:222) Caused by: java.lang.NoSuchMethodException: software.amazon.kinesis.metrics.MetricsConfig.metricsEnabledDimensions(java.util.HashSet) at java.lang.Class.getMethod(Class.java:1786) at software.amazon.kinesis.multilang.config.ConfigurationSettableUtils.resolveFields(ConfigurationSettableUtils.java:94) ... 5 more java.lang.NoSuchMethodException: software.amazon.kinesis.metrics.MetricsConfig.metricsEnabledDimensions(java.util.HashSet)

My KCL version is 2.1.2.

@EricVentor
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants