Startup fails with Missing required configuration "topic" which has no default value
See original GitHub issueHi,
Using the default properties configuration file:
config/xinfra-monitor.properties
The startup fails wit the following exception:
[2020-09-07 15:58:51,693] INFO DefaultMetricsReporterServiceConfig values:
report.interval.sec = 1
report.metrics.list = [kmf:type=kafka-monitor:offline-runnable-count, kmf.services:type=produce-service,name=*:produce-availability-avg, kmf.services:type=consume-service,name=*:consume-availability-avg, kmf.services:type=produce-service,name=*:records-produced-total, kmf.services:type=consume-service,name=*:records-consumed-total, kmf.services:type=produce-service,name=*:records-produced-rate, kmf.services:type=produce-service,name=*:produce-error-rate, kmf.services:type=consume-service,name=*:consume-error-rate, kmf.services:type=consume-service,name=*:records-lost-total, kmf.services:type=consume-service,name=*:records-lost-rate, kmf.services:type=consume-service,name=*:records-duplicated-total, kmf.services:type=consume-service,name=*:records-delay-ms-avg, kmf.services:type=commit-availability-service,name=*:offsets-committed-avg, kmf.services:type=commit-availability-service,name=*:offsets-committed-total, kmf.services:type=commit-availability-service,name=*:failed-commit-offsets-avg, kmf.services:type=commit-availability-service,name=*:failed-commit-offsets-total, kmf.services:type=commit-latency-service,name=*:commit-offset-latency-ms-avg, kmf.services:type=commit-latency-service,name=*:commit-offset-latency-ms-max, kmf.services:type=commit-latency-service,name=*:commit-offset-latency-ms-99th, kmf.services:type=commit-latency-service,name=*:commit-offset-latency-ms-999th, kmf.services:type=commit-latency-service,name=*:commit-offset-latency-ms-9999th, kmf.services:type=cluster-topic-manipulation-service,name=*:topic-creation-metadata-propagation-ms-avg, kmf.services:type=cluster-topic-manipulation-service,name=*:topic-creation-metadata-propagation-ms-max, kmf.services:type=cluster-topic-manipulation-service,name=*:topic-deletion-metadata-propagation-ms-avg, kmf.services:type=cluster-topic-manipulation-service,name=*:topic-deletion-metadata-propagation-ms-max, kmf.services:type=offset-commit-service,name=*:offset-commit-availability-avg, kmf.services:type=offset-commit-service,name=*:offset-commit-service-success-rate, kmf.services:type=offset-commit-service,name=*:offset-commit-service-success-total, kmf.services:type=offset-commit-service,name=*:offset-commit-service-failure-rate, kmf.services:type=offset-commit-service,name=*:offset-commit-service-failure-total]
(com.linkedin.xinfra.monitor.services.configs.DefaultMetricsReporterServiceConfig)
[2020-09-07 15:58:51,707] INFO ClusterTopicManipulationService constructor initiated com.linkedin.xinfra.monitor.services.ClusterTopicManipulationService (com.linkedin.xinfra.monitor.services.ClusterTopicManipulationService)
Exception in thread "main" org.apache.kafka.common.config.ConfigException: Missing required configuration "topic" which has no default value.
at org.apache.kafka.common.config.ConfigDef.parseValue(ConfigDef.java:476)
at org.apache.kafka.common.config.ConfigDef.parse(ConfigDef.java:466)
at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:108)
at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:129)
at com.linkedin.xinfra.monitor.services.configs.TopicManagementServiceConfig.<init>(TopicManagementServiceConfig.java:102)
at com.linkedin.xinfra.monitor.services.ClusterTopicManipulationService.<init>(ClusterTopicManipulationService.java:91)
at com.linkedin.xinfra.monitor.services.ClusterTopicManipulationServiceFactory.createService(ClusterTopicManipulationServiceFactory.java:48)
at com.linkedin.xinfra.monitor.XinfraMonitor.<init>(XinfraMonitor.java:82)
at com.linkedin.xinfra.monitor.XinfraMonitor.main(XinfraMonitor.java:186)
I have tried to find a reason in the properties but no luck yet, I was working ok with an earlier of the kafka-monitor but not with this version yet.
Anything I can try ?
Many thanks in advance,
Guilhem
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Missing required configuration "name" which has no default ...
The official documentation for snowflake states a name is required parameter. So I added a name=somerandomname in the above file. It still ...
Read more >Missing required configuration "topic" which has no default value
Bug - A problem which impairs or prevents the functions of the product. KAFKA-195 Sink don't validate topic config when using topics.regex.
Read more >Missing required configuration "key.converter" which has no ...
ConfigException: Missing required configuration "key.converter" which has no default value. at org.apache.kafka.common.config.ConfigDef.
Read more >org apache kafka common config ConfigException Missing ...
I am trying to run Kafka topic using Scala built tool. ... Missing required configuration bootstrap servers which has no default value.
Read more >[Missing required configuration "bootstrap.servers" which has ...
servers" which has no default value.]. . This issue occurs when the parameter bootstrap.servers is not present in the producer.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same issues
I have tested this copy of the repository locally in my dev environment, which is working successfully.
https://github.com/linkedin/kafka-monitor/pull/314
./gradlew clean && ./gradlew assemble && ./gradlew build && ./gradlew idea && ./gradlew jar && ./gradlew jar && ./bin/xinfra-monitor-start.sh config/xinfra-monitor.properties