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

Modified example to use zookeeper to build the broker-list #104

Merged
merged 1 commit into from
Apr 22, 2014

Conversation

bartw72
Copy link
Contributor

@bartw72 bartw72 commented Apr 20, 2014

This is a modified version of the examples provided to load the initial set of brokers from zookeeper and to use the watch to modify the broker list when new brokers register or de-register.

@bartw72
Copy link
Contributor Author

bartw72 commented Apr 20, 2014

I'ts unclear to me how to make sure the ci process adds libzookeeper-mt-dev and libjansson-dev to the local build. Without it, you have missing headers and libs to build the example.

@bartw72 bartw72 mentioned this pull request Apr 20, 2014
@bartw72
Copy link
Contributor Author

bartw72 commented Apr 20, 2014

Guess this needs to be added to the .travis.yml

before_install:
sudo apt-get update; sudo apt-get install libzookeeper-mt-dev libjansson-dev

@bartw72
Copy link
Contributor Author

bartw72 commented Apr 21, 2014

This change has some additional logging, added build dependencies to the rpm spec and travis ci check. The code is hopefully ready for another inspection ;-)

@@ -1,4 +1,4 @@
EXAMPLES ?= rdkafka_example rdkafka_performance rdkafka_example_cpp
EXAMPLES ?= rdkafka_example rdkafka_performance rdkafka_example_cpp rdkafka_zookeeper_example
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove rdkafka_zookeeper_example from this list, it will need to be built independently ('make rdkafka_zookeeper_example').
This is to avoid dependency on 3rd party libraries at this point.

@edenhill
Copy link
Contributor

Good stuff, but I dont want 3rd party library dependency requirements by default.

This tool can still be built explicitly.

Add build dependencies for libzookeper and libjansson

Change to regular include structure

Reformat code and add additional logging on brokers found
edenhill added a commit that referenced this pull request Apr 22, 2014
Added example to use zookeeper to build the broker-list
@edenhill edenhill merged commit bdf60ee into confluentinc:master Apr 22, 2014
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

Successfully merging this pull request may close these issues.

2 participants