Ask mentioned in the comments - Are you sure you connected to the correct Java instance and not the Kafka broker JMX metrics? Because kafka.server
nor kafka.controller
should not be there for ConnectDistributed process. (You should look at the main class of the process your connected to)
There's only one property, JMX_PORT
, and it is shared by both Kafka brokers and Kafka Connectors (and Zookeeper, Schema Registry, KSQL, etc, etc)... If you do not use different ports for each, then every next process you try to run, will will fail to start, saying a port is already open
If you have the available hardware, or can otherwise isolate components on a single machine (Docker or VM), then that's an easy way to remap ports.
Otherwise, you'd need to do something like
export JMX_PORT=35000 # pick a number
zookeeper-server-start...
export JMX_PORT=35001 # pick a number
kafka-server-start...
export JMX_PORT=35002 # pick a number
connect-distributed...
Then, attach to the appropriate ports for each JVM
Then, when you're satisfied with that, I will suggest finding the Confluent Whitepaper on a Production deployment setup, where Connect, at the very least (as with all other producer and consumers), are running off of the actual brokers.