DockerFiles for Development.
rename any file in the format docker-compose.yml and run docker-compose up -d to start the container
docker-compose up -d
nc -z localhost 22181 // zookeeper nc -z localhost 29092 // kafka
docker-compose logs kafka | grep -i started
###################################################################################
docker-compose up -d
nc -z localhost 2181 // zookeeper
// kafka
docker exec -it kafka bash
unset JXM_PORT
Error: JMX connector server communication error: service:jmx:rmi://13529ed4a4a9:9999 sun.management.AgentConfigurationError: java.rmi.server.ExportException: Port already in use: 9999; nested exception is: java.net.BindException: Address already in use (Bind failed) at sun.management.jmxremote.ConnectorBootstrap.exportMBeanServer(ConnectorBootstrap.java:800) at sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:468) at sun.management.Agent.startAgent(Agent.java:262) at sun.management.Agent.startAgent(Agent.java:452)
docker-compose down -v