question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Startup fails with Missing required configuration "topic" which has no default value

See original GitHub issue

Hi,

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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tariq452commented, Sep 18, 2020

I have the same issues

0reactions
andrewchoi5commented, Sep 28, 2020

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

[2020-09-28 15:26:08,623] INFO ==============================================================
kmf:type=kafka-monitor:offline-runnable-count=0.0
kmf.services:name=single-cluster-monitor,type=produce-service:produce-availability-avg=1.0
kmf.services:name=single-cluster-monitor,type=consume-service:consume-availability-avg=1.0
kmf.services:name=single-cluster-monitor,type=produce-service:records-produced-total=172.0
kmf.services:name=single-cluster-monitor,type=consume-service:records-consumed-total=154.0
kmf.services:name=single-cluster-monitor,type=produce-service:records-produced-rate=2.87245945991082
kmf.services:name=single-cluster-monitor,type=produce-service:produce-error-rate=0.0
kmf.services:name=single-cluster-monitor,type=consume-service:consume-error-rate=0.0
kmf.services:name=single-cluster-monitor,type=consume-service:records-lost-total=0.0
kmf.services:name=single-cluster-monitor,type=consume-service:records-lost-rate=0.0
kmf.services:name=single-cluster-monitor,type=consume-service:records-duplicated-total=0.0
  "cluster-topic-manipulation-service":{
     "class.name":"com.linkedin.xinfra.monitor.services.ClusterTopicManipulationService",
     "zookeeper.connect": "localhost:2181",
     "bootstrap.servers":"localhost:9092,localhost:9093",
     "topic": "xinfra-monitor-topic"
  },
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found