ConfigCommand Config相关操作; 动态配置可以覆盖默认的静态配置; 1 查询配置 Topic配置查询 展示关于Topic的动静态配置 1.1.查询单个Topic配置(只列举动态配置) sh bin/kafka-configs.sh --describe --bootstrap-server xxxxx:9092 --topic test_create_topic 或者sh
sh bin/kafka-configs.sh --bootstrap-server xxxxx:9092 --alter --entity-type topics --entity-name test_create_topic1 --add-config file.delete.delay.ms=222222,retention.ms=999999 Topic删除动态配置 --delete-config sh bin/kafka-configs.sh --bootstrap-server xxxxx:9092 --alter --entity-typ...
--command-config <String: command 文件路径> 用来配置客户端Admin Client启动配置,只在--bootstrap-server 同时使用时候生效; 例如:设置请求的超时时间 --command-config config/producer.proterties; 然后在文件中配置 request.timeout.ms=300000 1.2.删除Topic bin/kafka-topics.sh --bootstrap-server localhost...
哪些配置可以修改 请看最后面的附件:ConfigCommand 的一些可选配置 3. 默认配置 配置默认--entity-default sh bin/kafka-configs.sh --bootstrap-server xxxxx:9090 --alter --entity-type brokers --entity-default --add-config log.segment.bytes=88888888 动态配置的默认配置是使用了节点<defalut>; 该图转自...
--command-config <String: command 文件路径> 用来配置客户端Admin Client启动配置,只在–bootstrap-server 同时使用时候生效; 例如:设置请求的超时时间 --command-config config/producer.proterties; 然后在文件中配置 request.timeout.ms=300000 1.2.删除Topic bin/kafka-topics.sh --bootstrap-server localhost:...
--command-config /root/kafka_2.12-2.8.2/bin/admin7.conf \ --describe --topic topic_1_1 返回结果 Topic: topic_1_1 Partition: 0 Leader: 1000 Replicas: 1000 Isr: 1000 通过这种方式,选取4个topic:topic_1_1、topic_i_1_1、topic_j_1_1、topic_n_1_1,然后每个topic启动4个producer进行发压...
--entity-name对应参数1表示brokerid,是kafka-broker-info.sh中查询出的Broker_ID;--bootstrap-server参数是原集群访问的地址,--command-config参数是consumer.properties的绝对或者相对路径,文件中的安全协议security.protocol参数必须与--bootstrap-server中的端口对应;listener.security.protocol.map的值是步骤1中修改后...
kafka-consumer-groups.sh --bootstrap-server 172.16.100.10:9092 --list --command-config ../config/sasl.properties 1. 2. 3. 4. 列出所有消费者组 # 新版客户端 Kafka版本1.0 ./kafka-consumer-groups.sh --new-consumer --bootstrap-server 172.16.100.10:9092 --list | wc -l ...
./kafka-consumer-groups.sh --bootstrap-server${connection-address}--delete --group${consumer-group-name}--command-config ../config/ssl-user-config.properties 参数说明如下: connection-address:在Kafka控制台的“基本信息 > 连接信息”中,获取Kafka实例的连接地址。
ConfigCommand Config相关操作; 动态配置可以覆盖默认的静态配置; 1 查询配置 Topic配置查询 展示关于Topic的动静态配置 1.1.查询单个Topic配置(只列举动态配置) sh bin/ --describe --bootstrap-server xxxxx:9092 --topic test_create_topic 或者 ...