ruby-kafka

https://github.com/zendesk/ruby-kafka

Ruby

A Ruby client library for Apache Kafka

Kafka::Cluster#fetch_cluster_info

Fetches the cluster metadata.

This is used to update the partition leadership information, among other things.
The methods will go through each node listed in `seed_brokers`, connecting to the
first one that is available. This node will be queried for the cluster metadata.

Source | Google | Stack overflow

Edit

git clone [email protected]:zendesk/ruby-kafka.git

cd ruby-kafka

open lib/kafka/cluster.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Kafka--Cluster-fetch_cluster_info-for-pr


# Commit to git

git add lib/kafka/cluster.rbgit commit -m "better docs for Kafka::Cluster#fetch_cluster_info"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Kafka--Cluster-fetch_cluster_info-for-pr

hub pull-request


# Celebrate!