Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kafka-manager JMX_PORT #141

Closed
lghinet opened this issue Feb 2, 2018 · 7 comments
Closed

kafka-manager JMX_PORT #141

lghinet opened this issue Feb 2, 2018 · 7 comments

Comments

@lghinet
Copy link

lghinet commented Feb 2, 2018

Hello,
by default JMX_PORT = 5555
but kafka-manager cannot reach that port using the outside-(0,1,2) services

enviroment: kubernetes 1.9.2 (kubeadm); local

any ideas ?
thanks

@solsson
Copy link
Contributor

solsson commented Feb 2, 2018

I think there's nothing special with the JMX port, like with the relation between Kafka's bootstrap flow and listener addresses. You can expose 5555 to remote using any Kubernetes mechanism you like.

@lghinet
Copy link
Author

lghinet commented Feb 2, 2018

if i expose jmx port through kubernetes services, the nodeport will be between 30k-32k ;
so i will have to change the jmx port from 5555 to something else ... right ?

@lghinet
Copy link
Author

lghinet commented Feb 2, 2018

because kafka manager will try to reach nodeIP:5555

@solsson
Copy link
Contributor

solsson commented Feb 2, 2018

I recommend that you run kafka-manager together with your kafka cluster, and expose kafka-manager remotely instead. See #83.

It'd be interesting to be able to use JMX GUIs remotely, and for that I guess it doesn't matter if the port is different.

@lghinet
Copy link
Author

lghinet commented Feb 5, 2018

thank you for your reply,
my brokers host is an external node IP and not the in cluster dns kafka-0.broker.kafka.svc.cluster.local:9094, which is also working, as show in this picture
image

because i want to reach kafka from outside my kube cluster
according to my picture, kafka-manager will try to reach 10.1.3.79:5555 for logs, which is not open

kafka broker 0 config

advertised.listeners = OUTSIDE://10.1.3.79:32400,PLAINTEXT://:9092
listeners = OUTSIDE://:9094,PLAINTEXT://:9092

if I would change the advertised.listeners to OUTSIDE://kafka-0.broker.kafka.svc.cluster.local:9094,PLAINTEXT://:9092 then kafka-manager will work, but I will be unable to connect to kafka from outside my kube cluster,

kafka-manager is deployed in the same namespace as kafka and zk

@lghinet
Copy link
Author

lghinet commented Feb 12, 2018

is there something wrong in my configs ?
thanks

@solsson
Copy link
Contributor

solsson commented Feb 13, 2018

Sorry, IMO external kafka-manager isn't in scope for this repo. Feel free to explore this anyway. If others are interested they will surely find this issue and maybe you can join forces.

@solsson solsson closed this as completed Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants