-
Notifications
You must be signed in to change notification settings - Fork 585
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
Improvement and clean up. #45
Conversation
becketqin
commented
Oct 5, 2017
•
edited
Loading
edited
- Bumped Kafka dependency to 0.10.2.1. So broker version 0.10.0 and above would work.
- Removed test harness classes. Just depend on li-apache-kafka-clients instead.
- Added separate configurations for the metrics reporter producer.
- Added the missing sasl configs.
…ocol. remove test harness classes to depend on li-apache-kafka-clients
…s for the metrics reporter producer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM.
@@ -85,30 +86,36 @@ public void close() { | |||
|
|||
@Override | |||
public void configure(Map<String, ?> configs) { | |||
String bootstrapServers = (String) configs.get(CRUISE_CONTROL_METRICS_REPORTER_BOOTSTRAP_SERVERS); | |||
if (bootstrapServers == null) { | |||
Properties producerProps = CruiseControlMetricsReporterConfigs.parseConfigMap(configs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If CruiseControlMetricsRepoterConfigs just extended from the Kafka configs class it would be easy to put all this default logic into that class. No?
1. Bumped Kafka dependency to 0.10.2.1. So broker version 0.10.0 and above would work. 2. Removed test harness classes. Just depend on li-apache-kafka-clients instead. 3. Added separate configurations for the metrics reporter producer. 4. Added the missing sasl configs. Conflicts: build.gradle