I would like to test my kafka cluster on a single machine for testing purposes.
As such I have created 3 config files, server.properties,
server2.properties and server3.properties. Each server config file has
a port that is one higher than the previous one (8182, 8183, 8184).
To set JMX's port I am using the following to run the server:
env JMX_PORT=10000 && bin/kafka-server-start.sh config/server2.properties
This results in the following output:
https://gist.github.com/3967703
As you can see, after some initialization, it throws a:
Error: Exception thrown by the agent :
java.rmi.server.ExportException: Port already in use: 9999; nested
exception is:
java.net.BindException: Address already in use
Regards,
Tom