zoukankan      html  css  js  c++  java
  • kafka常用指令

    来自homie:https://www.cnblogs.com/cuiyuanhao/
    查看消费组详情:
    ./bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group test-consumer-group
    查看topic详情:
    ./bin/kafka-topics.sh --topic mytopic --describe --bootstrap-server localhost:9092
    创建topic:
    bin/kafka-topics.sh --zookeeper localhost:2181 --create --topic mytopic --partitions 10 --replication-factor 3
    查看topic详情:
    bin/kafka-topics.sh --zookeeper localhost:2181 --desc --topic mytopic
    修改partition数量:
    bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --partitions 10
    删除topic:
    server.properties ==> delete.topic.enable=true
    bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic mytopic
    创建终端生产者:
    bin/kafka-console-producer.sh --broker-list localhost:9092 --topic mytopic
    .inkafka-console-producer.bat --bootstrap-server localhost:9092 --topic my-topic
    创建终端消费者:
    bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic mytopic

  • 相关阅读:
    网站代码优化总结
    移动端 H5 页面注意事项
    js基础知识点收集
    2017-3-26 webpack入门(一)
    gulp教程
    less的使用
    微信小程序接口封装
    div上下左右居中几种方式
    前端知识点-面试
    call和apply
  • 原文地址:https://www.cnblogs.com/caoxueyang/p/13937605.html
Copyright © 2011-2022 走看看