Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion core/src/main/scala/kafka/admin/ConfigCommand.scala
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ object ConfigCommand extends Config {
opts.checkArgs()

if (opts.options.has(opts.zkConnectOpt)) {
println(s"Warning: --zookeeper is deprecated and will be removed in a future version of Kafka.")
println(s"Use --bootstrap-server instead to specify a broker to connect to.")
processCommandWithZk(opts.options.valueOf(opts.zkConnectOpt), opts)
} else {
processCommand(opts)
Expand Down Expand Up @@ -535,7 +537,7 @@ object ConfigCommand extends Config {

class ConfigCommandOptions(args: Array[String]) extends CommandDefaultOptions(args) {

val zkConnectOpt = parser.accepts("zookeeper", "The connection string for the zookeeper connection in the form host:port. " +
val zkConnectOpt = parser.accepts("zookeeper", "DEPRECATED. The connection string for the zookeeper connection in the form host:port. " +
Comment thread
skaundinya15 marked this conversation as resolved.
"Multiple URLS can be given to allow fail-over.")
.withRequiredArg
.describedAs("urls")
Expand Down