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
gem 'pg' | |
group :development do | |
gem 'ruby-debug' | |
end | |
gem 'rake', '~> 0.8.7' | |
gem 'devise' | |
gem 'oa-oauth', :require => 'omniauth/oauth' | |
gem 'omniauth' | |
gem 'haml' | |
gem 'dynamic_form' |
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
# Create a topic if a topic with the same name does NOT exist | |
bin/kafka-topics.sh --zookeeper zookeeper1:2181/kafka \ | |
--create \ | |
--topic topic-1 \ | |
--replication-factor 1 \ | |
--partitions 3 \ | |
--if-not-exists | |
# Alter the number of partitions (can only go up) | |
bin/kafka-topics.sh --zookeeper zookeeper1:2181/kafka \ |
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
# List all the consumer groups | |
bin/kafka-consumer-groups.sh --bootstrap-server kafka1:9092 \ | |
--list | |
# Describe a specific consumer group | |
bin/kafka-consumer-groups.sh --bootstrap-server kafka1:9092 \ | |
--describe \ | |
--group application1 | |
# Describe the active members of the group |