Skip to content

Instantly share code, notes, and snippets.

View mousepotato's full-sized avatar

mousepotato mousepotato

View GitHub Profile
@mousepotato
mousepotato / Kafka commands.md
Created October 24, 2017 22:06 — forked from vkroz/Kafka commands.md
Kafka frequent commands

Kafka frequent commands

Assuming that the following environment variables are set:

  • KAFKA_HOME where Kafka is installed on local machine (e.g. /opt/kafka)
  • ZK_HOSTS identifies running zookeeper ensemble, e.g. ZK_HOSTS=192.168.0.99:2181
  • KAFKA_BROKERS identifies running Kafka brokers, e.g. KAFKA_BROKERS=192.168.0.99:9092

Server

Start Zookepper and Kafka servers

@mousepotato
mousepotato / 0_reuse_code.js
Created June 13, 2014 18:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console