Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka >> mail # user >> kafka 3.4.4: multiple brokers on one host (for testing purposes)

Copy link to this message
Re: kafka 3.4.4: multiple brokers on one host (for testing purposes)
You need to specify a different JMX port for the second Kafka server, since both JVM's will need one.

You could set it to x, then run the first server, then set it to to x+1, and run the second server.  That's how I set it up for local testing.


Sent from my iPhone

On Oct 27, 2012, at 23:20, Tom <[EMAIL PROTECTED]> wrote:

> 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