Skip to content

Instantly share code, notes, and snippets.

View bepcyc's full-sized avatar
🙃
Sparkling

Viacheslav Rodionov bepcyc

🙃
Sparkling
  • Qualcomm
  • Germany
View GitHub Profile
@bepcyc
bepcyc / wc_hdfs
Last active December 25, 2015 15:29 — forked from abicky/wc_hdfs
wc for Hadoop HDFS files
#!/bin/bash
#set correct path
HADOOP_HOME="/usr/lib/hadoop"
condition=""
fs="\t"
words=""
lines=""
chars=""
@bepcyc
bepcyc / kafka-cheat-sheet.md
Created September 22, 2018 15:40 — forked from ursuad/kafka-cheat-sheet.md
Quick command reference for Apache Kafka

Kafka Topics

List existing topics

bin/kafka-topics.sh --zookeeper localhost:2181 --list

Describe a topic

bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic

Purge a topic

bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000

... wait a minute ...