When I try to expand the replicas for specific topic with reassign shell, I got 'zookeeper is not a recognized option' error. The shell script as below:
kafka-reassign-partitions.sh --zookeeper localhost:2181 --reassignment-json-file reassign.json --execute
I got the result as below:
Exception in thread "main" joptsimple.UnrecognizedOptionException: zookeeper 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.ReassignPartitionsCommand$ReassignPartitionsCommandOptions.<init>(ReassignPartitionsCommand.scala:1498) at kafka.admin.ReassignPartitionsCommand$.validateAndParseArgs(ReassignPartitionsCommand.scala:1332) at kafka.admin.ReassignPartitionsCommand$.main(ReassignPartitionsCommand.scala:194) at kafka.admin.ReassignPartitionsCommand.main(ReassignPartitionsCommand.scala)
Expection: zookeeper could be a valid option for the reassign shell
ps: Kafka Version: 3.0