Last active
August 26, 2016 10:27
-
-
Save johnjullies/39afbbb160f9be3fec1c to your computer and use it in GitHub Desktop.
This file contains 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
# Kafka: | |
# starting Zookeeper | |
bin/zookeeper-server-start.sh config/zookeeper.properties | |
# Kafka server | |
bin/kafka-server-start.sh config/server.properties | |
# create topic 'test' | |
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test | |
# list topics | |
bin/kafka-topics.sh --list --zookeeper localhost:2181 | |
# start a Producer | |
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test | |
# start a Consumer | |
bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from-beginning | |
# Docker: | |
docker stop $(docker ps -a -q) # stops all running containers | |
docker rm $(docker ps -a -q) # removes all | |
# Docker 404 Error Fix: | |
sudo mv /var/lib/docker/network/files/ /path/to/backup/docker-network-files | |
# Get info Linux machine | |
uname -a | |
# Fix broken update; source: https://ubuntuforums.org/showthread.php?t=2188524 | |
sudo apt-get update && sudo apt-get upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment