Kafka学习之Replication tools之Create Topic Tool
来源:互联网 发布:数据库有什么新技术 编辑:程序博客网 时间:2024/06/16 11:46
原文链接:https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools#Replicationtools-3.ListTopicTool
此工具能干啥?
如果设置auto.create.topics.enable为true,则Kafka会默认自动创建topic。会使用默认的partition数量,replication factor和Kafka的默认schema来做replica assignment。有时候我们想自定义一下,此工具帮助我们使用指定的partition数量,replication factor和replica assignment列表来创建一个topic。
如何使用?
bin/kafka-create-topic.sh Option Description------ -------------partition <Integer: # of partitions> number of partitions in the topic (default: 1) --replica <Integer: replication factor> replication factor for each partitions in the topic (default: 1) --replica-assignment-list for manually assigning replicas to brokers (default: ) <broker_id_for_part1_replica1 : broker_id_for_part1_replica2, broker_id_for_part2_replica1 : broker_id_for_part2_replica2, ...> --topic <topic> REQUIRED: The topic to be created. --zookeeper <urls> REQUIRED: The connection string for the zookeeper connection in the form host:port. Multiple URLS can be given to allow fail-over.
0 0
- Kafka学习之Replication tools之Create Topic Tool
- Kafka学习之Replication tools之List Topic Tool
- Kafka学习之Replication tools之Add Partition Tool
- Kafka学习之Replication tools之Reassign Partitions Tool
- Kafka学习之Replication tools之StateChangeLogMerger Tool
- Kafka学习之Replication tools之Preferred Replica Leader Election Tool
- Kafka学习之Replication tools之controlled shutdown
- Kafka replication tools
- kafka Replication tools
- Kafka动态增加Topic的副本(Replication)
- apache kafka系列之replication设计机制
- Kafka如何动态增加Topic的副本(Replication)
- Kafka Creating Topic Error: replication factor larger than available brokers
- kafka源码解析之十五客户端如何创建topic
- Kafka笔记二之Topic操作,文件参数配置
- Kafka 学习 -- Topic的创建
- kafka学习(四)-Topic & Partition
- kafka学习之路
- 使用mysqladmin ext了解MySQL运行状态
- Kafka学习之Replication tools之Preferred Replica Leader Election Tool
- 2015百度面试
- over(partition by) 后表与表如何连接数据不会丢
- Kafka学习之Replication tools之List Topic Tool
- Kafka学习之Replication tools之Create Topic Tool
- Spiral Matrix II
- Kafka学习之Replication tools之Add Partition Tool
- 看了两个小时阿里校招的大混战
- poj 1995 (快速幂) poj 3233(矩阵快速幂)
- Kafka学习之Replication tools之Reassign Partitions Tool
- rat maze
- 为梦想,再拼一次
- Kafka学习之Replication tools之StateChangeLogMerger Tool