2

I set the Kafka on my localhost and then read the broker side using JVM and port 1999 but whatever I tried I can't reach my consumer or producer. I am able to connect to port 9092 and read MBean on jconsole but I can't send any query to it using the python subprocess

I used the following JVM connection example "service:jmx:rmi:///jndi/rmi://localhost:1999/jmxrmi" and jmxquery/subprocess python libraries.

I wrote down every step I am doing in the repository

I am starting Kafka like this:

and starting consumers like this:

also the producer:

This is the main worker that I am trying to make work:

more info about what I am trying to accomplish is here: https://github.com/mirkan1/kafka_monitoring/tree/master/Kafka_Complete_Monitoring

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Raqun Bob
  • 156
  • 1
  • 12

1 Answers1

1

I found the problem was that I was using the same port which is 9092 for everything, after I assigned different ports for consumer and producer it worked at intended and I was able to read MBeans data using JMX connection

Raqun Bob
  • 156
  • 1
  • 12