Created
July 25, 2016 23:16
-
-
Save cablehead/f6153f55b54e97dabb19e47724e4f0ba to your computer and use it in GitHub Desktop.
listing kafka groups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const struct rd_kafka_group_list *grplist; | |
err = rd_kafka_list_groups(rk, NULL, &grplist, 5000); | |
assert (!err); | |
for (i = 0 ; i < grplist->group_cnt ; i++) { | |
const struct rd_kafka_group_info *gi = &grplist->groups[i]; | |
printf("%s\n", gi->group); | |
} | |
rd_kafka_group_list_destroy(grplist); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment