lingyi.zhong created KAFKA-8915: ----------------------------------- Summary: 无法修改partition Key: KAFKA-8915 URL: https://issues.apache.org/jira/browse/KAFKA-8915 Project: Kafka Issue Type: Bug Reporter: lingyi.zhong
[root@work1 kafka]# bin/kafka-topics.sh --create --zookeeper 10.20.30.77:2181 --replication-factor 1 --partitions 1 --topic test_topic3[root@work1 kafka]# bin/kafka-topics.sh --create --zookeeper 10.20.30.77:2181 --replication-factor 1 --partitions 1 --topic test_topic3 WARNING: Due to limitations in metric names, topics with a period ('.') or underscore ('_') could collide. To avoid issues it is best to use either, but not both.Created topic "test_topic3".[root@work1 kafka]# bin/kafka-topics.sh --alter --zookeeper 10.20.30.78:2181/chroot --partition 2 --topic test_topic3 Exception in thread "main" joptsimple.UnrecognizedOptionException: partition is not a recognized option at joptsimple.OptionException.unrecognizedOption(OptionException.java:108) at joptsimple.OptionParser.handleLongOptionToken(OptionParser.java:510) at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:56) at joptsimple.OptionParser.parse(OptionParser.java:396) at kafka.admin.TopicCommand$TopicCommandOptions.<init>(TopicCommand.scala:358) at kafka.admin.TopicCommand$.main(TopicCommand.scala:44) at kafka.admin.TopicCommand.main(TopicCommand.scala) -- This message was sent by Atlassian Jira (v8.3.2#803003)