赞
踩
Each sharded partition log is placed into its own folder under the Kafka log directory. The name of such folders consists of the topic name, appended by a dash (-) and the partition id. Since a typical folder name can not be over 255 characters long, there will be a limitation on the length of topic names. We assume the number of partitions will not ever be above 100,000. Therefore, topic names cannot be longer than 249 characters. This leaves just enough room in the folder name for a dash and a potentially 5 digit long partition id.
每个分片的分区日志被放置到Kafka日志目录下自己的文件夹中。这些文件夹的名称由主题名(后面加一个破折号(-))和分区id组成。因为一个典型的文件夹名称不能超过255个字符,所以主题名称的长度会有限制。我们假设分区的数量永远不会超过100,000。因此,主题名称的长度不能超过249个字符。这就在文件夹名中留下了足够的空间,可以使用破折号和一个可能的5位长的分区id。
经过从10万到100之间的测试,发现最大支持250,超过则报错
参考:https://kafka.apache.org/documentation/#producerconfigs
修改步骤,下图为截图:
参考:https://my.oschina.net/objcoding/blog/3124509
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。