kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lingyi.zhong (Jira)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-8915) 无法修改partition
Date Tue, 17 Sep 2019 08:17:00 GMT
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 --replication-factor
1 --partitions 1  --topic test_topic3[root@work1 kafka]# bin/kafka-topics.sh --create --zookeeper --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  --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

View raw message