我试图增加apachekafka中某个主题的复制因子
kafka-reassign-partitions --zookeeper ${zookeeperid} --reassignment-json-file ${aFile} --execute
最初,我的主题的复制因子是1,有5个分区,我试图将它的复制因子增加到3。当我运行上述命令时,错误是-“有一个现有的分配正在运行”。我的json文件如下所示:
{
"version": 1,
"partitions": [
{
"topic": "IncreaseReplicationTopic",
"partition": 0,
"replicas": [2,4,0]
},{
"topic": "IncreaseReplicationTopic",
"partition": 1,
"replicas": [3,2,1]
}, {
"topic": "IncreaseReplicationTopic",
"partition": 2,
"replicas": [4,1,0]
}, {
"topic": "IncreaseReplicationTopic",
"partition": 3,
"replicas": [0,1,3]
}, {
"topic": "IncreaseReplicationTopic",
"partition": 4,
"replicas": [1,4,2]
}
]
}
我不知道我哪里出错了。任何提示都将不胜感激。
1条答案
按热度按时间sdnqo3pr1#
此消息表示已在执行任何主题的另一个分配。请过一会儿再试一次。那你就看不到这个消息了