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

Non String Key Deserialisers not working correctly with Kafka Input Plugin #92

Open
rkpundhir90 opened this issue Jun 5, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@rkpundhir90
Copy link

Logstash information:

Logstash Version - 7.13.1

Run from Logstash windows zip version

Command - bin\logstash.bat -f config\logstash.conf

JVM (e.g. java -version):
AdoptOpenJDK 11.0.8

Description of the problem including expected versus actual behavior:

PFB Kafka input configuration with the schema registry url that stores the avro schema. When population the deserialiser class for key_deserializer_class to non string deserialiser ie .KafkaAvroDeserializer, logstash is producing the errors

kafka {
id => ""
bootstrap_servers => "localhost:9092"
topics => ["test-topics"]
client_id => "kafka-consumer"
group_id => "test"
auto_offset_reset => "earliest"
decorate_events => true
security_protocol => "SSL"
ssl_keystore_location => "keystore.jks"
ssl_keystore_password => "prmcert"
ssl_truststore_location => "truststore.jks"
ssl_truststore_password => "prmcert"
key_deserializer_class => "io.confluent.kafka.serializers.KafkaAvroDeserializer"
schema_registry_url => "http://localhost:9093"
}

** Logs **
org.logstash.MissingConverterException: Missing Converter handling for full class name=org.apache.avro.generic.GenericData$Record, simple name=Record
at org.logstash.Valuefier.fallbackConvert(Valuefier.java:118) ~[logstash-core.jar:?]
at org.logstash.Valuefier.convert(Valuefier.java:96) ~[logstash-core.jar:?]
at org.logstash.Valuefier.lambda$static$3(Valuefier.java:72) ~[logstash-core.jar:?]
at org.logstash.Valuefier.convert(Valuefier.java:94) ~[logstash-core.jar:?]
at org.logstash.ext.JrubyEventExtLibrary$RubyEvent.safeValueifierConvert(JrubyEventExtLibrary.java:355) ~[logstash-core.jar:?]
at org.logstash.ext.JrubyEventExtLibrary$RubyEvent.ruby_set_field(JrubyEventExtLibrary.java:121) ~[logstash-core.jar:?]
at org.logstash.ext.JrubyEventExtLibrary$RubyEvent$INVOKER$i$2$0$ruby_set_field.call(JrubyEventExtLibrary$RubyEvent$INVOKER$i$2$0$ruby_set_field.gen) ~[jruby-complete-9.2.16.0.jar:?]
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:835) ~[jruby-complete-9.2.16.0.jar:?]
at org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:207) ~[jruby-complete-9.2.16.0.jar:?]
at C_3a_.Users.rpundhir.Downloads.logstash_minus_7_dot_13_dot_1.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_integration_minus_kafka_minus_10_dot_7_dot_5_minus_java.lib.logstash.inputs.kafka.RUBY$method$maybe_set_metadata$0(C:/Users/Downloads/logstash-7.13.1/vendor/bundle/jruby/2.5.0/gems/logstash-integration-kafka-10.7.5-java/lib/logstash/inputs/kafka.rb:366) ~[?:?]

@rkpundhir90 rkpundhir90 added the bug Something isn't working label Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant