Skip to content

Instantly share code, notes, and snippets.

@lenadroid
Last active April 6, 2018 03:07
Show Gist options
  • Save lenadroid/f3a6265d5308598fb1a293ff4ab79b26 to your computer and use it in GitHub Desktop.
Save lenadroid/f3a6265d5308598fb1a293ff4ab79b26 to your computer and use it in GitHub Desktop.
export TOPIC_NAME="tweets"
export ZOOKEEPER_SERVERS="your comma separated zookeeper servers"
/usr/hdp/current/kafka-broker/bin/kafka-topics.sh --create --replication-factor 3 --partitions 4 --topic $TOPIC_NAME --zookeeper $ZOOKEEPER_SERVERS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment