kafka
kafka copied to clipboard
Fix quickstart script.
The quickstart script was failing for me for a variety of reasons. This version works for me. I'll be happy to incorporate suggestions and fixes.
Thanks for the PR! Some thoughts I have after trying to get the quickstart script working:
- Should we fail fast if minimesosFile is missing in the root directory? ** Accordingly, add a .gitignore for minimesosFile?
- if there are other versions of kafka-mesos in /tmp the script will fail because it finds duplicates, should we clean old ones out before copying the current in?
- Once I got everything working it seems like the initial broker add/update/start fails because the HTTP server isn't fully initialized (although it is listening on the correct port). Perhaps its better to run
broker listuntil it returns back successfully? Or curl/api/broker/listuntil it returns a 200? - Should we name the launched kafka-mesos scheduler container, and run it with
--rmto remove the container when it exits?