{"action":"created","issue":{"url":"https://api.github.com/repos/linkedin/cruise-control/issues/98","repository_url":"https://api.github.com/repos/linkedin/cruise-control","labels_url":"https://api.github.com/repos/linkedin/cruise-control/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/linkedin/cruise-control/issues/98/comments","events_url":"https://api.github.com/repos/linkedin/cruise-control/issues/98/events","html_url":"https://github.com/linkedin/cruise-control/issues/98","id":284815217,"number":98,"title":"Null Borker_id Exception","user":{"login":"recao","id":20957260,"avatar_url":"https://avatars3.githubusercontent.com/u/20957260?v=4","gravatar_id":"","url":"https://api.github.com/users/recao","html_url":"https://github.com/recao","followers_url":"https://api.github.com/users/recao/followers","following_url":"https://api.github.com/users/recao/following{/other_user}","gists_url":"https://api.github.com/users/recao/gists{/gist_id}","starred_url":"https://api.github.com/users/recao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recao/subscriptions","organizations_url":"https://api.github.com/users/recao/orgs","repos_url":"https://api.github.com/users/recao/repos","events_url":"https://api.github.com/users/recao/events{/privacy}","received_events_url":"https://api.github.com/users/recao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-27T23:52:22Z","updated_at":"2017-12-28T13:18:41Z","closed_at":null,"author_association":"NONE","body":"Hi, we are testing CruiseControl on our production Kafka clusters, and got following error message: \r\n\r\n[2017-12-27 22:42:16,678] FATAL  (kafka.Kafka$)\r\njava.lang.NumberFormatException: null\r\n        at java.lang.Integer.parseInt(Integer.java:542)\r\n        at java.lang.Integer.parseInt(Integer.java:615)\r\n        at com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter.configure(**CruiseControlMetricsReporter.java:111**)\r\n        at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstances(AbstractConfig.java:239)\r\n        at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:925)\r\n        at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:779)\r\n        at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:776)\r\n        at kafka.server.KafkaServerStartable$.fromProps(KafkaServerStartable.scala:28)\r\n        at kafka.Kafka$.main(Kafka.scala:58)\r\n        at kafka.Kafka.main(Kafka.scala)\r\n\r\nBy look at source code, seems CruiseControlMetricsReporter needs to get Broker_id from KafkaConfig object, which reads from server.properties file. \r\n\r\nThe problem is our production Kafka cluster uses automatic Broker-ids generated by ZooKeeper, so there is no such \"broker.id\" attribute in the server.properties file, which causes the FATAL error above. Any suggestions to unblock ourselves in this scenario? Thanks!\r\n\r\nRen"},"comment":{"url":"https://api.github.com/repos/linkedin/cruise-control/issues/comments/354287070","html_url":"https://github.com/linkedin/cruise-control/issues/98#issuecomment-354287070","issue_url":"https://api.github.com/repos/linkedin/cruise-control/issues/98","id":354287070,"user":{"login":"becketqin","id":5778611,"avatar_url":"https://avatars3.githubusercontent.com/u/5778611?v=4","gravatar_id":"","url":"https://api.github.com/users/becketqin","html_url":"https://github.com/becketqin","followers_url":"https://api.github.com/users/becketqin/followers","following_url":"https://api.github.com/users/becketqin/following{/other_user}","gists_url":"https://api.github.com/users/becketqin/gists{/gist_id}","starred_url":"https://api.github.com/users/becketqin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/becketqin/subscriptions","organizations_url":"https://api.github.com/users/becketqin/orgs","repos_url":"https://api.github.com/users/becketqin/repos","events_url":"https://api.github.com/users/becketqin/events{/privacy}","received_events_url":"https://api.github.com/users/becketqin/received_events","type":"User","site_admin":false},"created_at":"2017-12-28T13:18:41Z","updated_at":"2017-12-28T13:18:41Z","author_association":"CONTRIBUTOR","body":"@recao Which Kafka version are you running? Kafka 0.10.2.0+ should have passed the broker id to the metrics reporter. If your Kafka server is before 0.10.2.0, you may have to specify the broker id explicitly in the server.properties file. Hopefully the broker id will only change rarely. So once set it will not change."}}
{"actor":{"display_login":"becketqin"}}