Giter Club home page Giter Club logo

kafka-tools's Introduction

cd kafka-tools
docker build -t registry.cn-beijing.aliyuncs.com/boer/ktools:0.9.8 .
docker push registry.cn-beijing.aliyuncs.com/boer/ktools:0.9.8
kubectl create -n mw-kafka -f - <<EOF
apiVersion: v1
kind: Pod
metadata:
  name: kafka-test
  namespace: mw-kafka
spec:
  containers:
  - name: kafka-test
    image: registry.cn-beijing.aliyuncs.com/boer/ktools:0.9.8
    # Just spin & wait forever
    command: [ "/bin/sh", "-c", "--" ]
    args: [ "while true; do sleep 3000; done;" ]
EOF
kubectl -n mw-kafka exec -it kafka-test -- sh
# with auth
ktop -kafkaURL=kafka-headless:9092 -withAuth -auths=admin:admin -topic=test002 -p=6 -r=2
kcat -L -b kafka-headless:29000
kpro -kafkaURL=kafka-headless:9092 -withAuth -auths=admin:admin -topic=test002 -acks=1
kcom -kafkaURL=kafka-headless:9092 -withAuth -auths=admin:admin -topic=test002 -groupID=cgi
# with out auth
ktop -kafkaURL=kafka-headless:29000 -topic=test003 -p=3 -r=1
kcat -L -b kafka-headless:29000
kpro -kafkaURL=kafka-headless:29000 -topic=test003 -acks=1
kcom -kafkaURL=kafka-headless:29000 -topic=test003 -groupID=cgi

kafka-tools's People

Contributors

boer0924 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.