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
Unable to see topic partition offsets in version 1.3.3.4 #368
Comments
I think i know why topic offsets are not displayed .. In KafkaStateActor.scala , line 490 def getTopicPartitionOffsets(topic: String, interactive: Boolean) : Future[PartitionOffsetsCapture] = { i disabled that check and it worked for me Can we remove that check in the next version |
I also had to use the unsecured port to get the partition offset . Is there any way to get partition offset by connecting to a secured port ? [error] k.m.a.c.OffsetCacheActive - [topic=MY_TOPIC] An error has occurred while getting topic offsets from broker List((BrokerIdentity(50,abc.com,XXXX,YYYY,true),1)) |
I'm running 1.3.3.4 against a test cluster which is not secured and can't see topic offsets either. Log output:
|
Please refer to #296 |
Hello. Same issue for me. Is there any update for the issue? |
Thanks simplesteph. Now I understand what's the problem :) |
Yes, will be working on this. What security do you have enabled on your clusters? |
We use SASL_PLAINTEXT |
Do you provide the jaas config as JVM params and the consumer properties file with security.protocol set to SASL_PLAINTEXT ? |
Nopes . I think the problem is the use of the old scala consumer api that fetches the topic offset . I think we have to rely on the old scala api to get the topic offset and to do that we have to use the unsecured port . If Kafka team provides an api in the new client version to fetch topic offset that might help to get rid of old scala api in Kafka Manager . |
In Kafka Manager we use : // Get the latest offsets for the partitions of the topic,
|
So this leaves us with only one option.
I have done this as a workaround: https://github.com/yahoo/kafka-manager/blob/1.3.3.4/app/kafka/manager/model/ActorModel.scala Changes : 266 for { Let us know your thoughts ? |
The consumer offset already uses the new kafka consumer. The topic / producer offset code still uses the old consumer. Please provide KM with the JVM params to configure JAAS and a corresponding consumer.properties file which has correct security.protocol |
Using the jaas file will connect to secured port , will that get the topic offset details ? |
Topic offset is only available through simple consumer last I checked. That is why it is still using the unsecured method. The consumer offsets use the new consumer, so to see lag you have to provide JAAS and consumer.properties. |
The real issue is on line 261, where we find the first item from the end point list. This means if the secure one is listed first in the json, it gets used, and what we should do is try to find an unsecured one first and then use a secured one as fallback.
|
I think it make sense to find the unsecured port first and then try for secured port . Or How about an option 'Use security' while registering a cluster in kafka Manager ? Using an option will be transparent for the users ? |
Use security at time of adding a cluster doesn't work unless there is a way to provide jaas configuration programmatically. |
Agree. I was suggesting a checkbox ? This will help users to ensure whether they need to provide a jaas/consumer properties file or not ? |
then I also don't see any Topics Offsets anymore. Switching back to PLAINTEXT as first endpoint works, but makes the Kafka unsecure. @patelh Do I understand that correctly: Kafka does not offer an API for getting the Topic Offset when using SASL? |
The same issue I have while using SSL while using kafka 0.10.0 and KM 1.3.3.6 |
Use latest version, you can now provide security protocol to use in cluster config. |
This is awesome . |
Hi,
I am using the latest version of KM 1.3.3.4 .
I added a kafka cluster version 0.10.0.1 and enabled JMX metrics and other features .
I am not able to see the offset for the topic partition , i can see the consumer offsets .
Previously , i was using version 1.3.0.8 and i was able to see the topic partition offsets , i looked at the code for 1.3.0.8 and i see that it uses ZK to fetch offset details .
In version 1.3.3.4 i see it uses Kafka to fetch offset details .
The text was updated successfully, but these errors were encountered: