# Using output Kafka Codec Avro with KafkaAvroSerializer (schema\_registry\_url issue)

**URL:** https://discuss.elastic.co/t/using-output-kafka-codec-avro-with-kafkaavroserializer-schema-registry-url-issue/245953
**Category:** Logstash
**Created:** [August 21, 2020, 7:17pm UTC](https://discuss.elastic.co/t/using-output-kafka-codec-avro-with-kafkaavroserializer-schema-registry-url-issue/245953 "2020-08-21T19:17:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![belguith\_chachia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/belguith_chachia/32/74081_2.png) [@belguith\_chachia](https://discuss.elastic.co/u/belguith_chachia)
#### Post date: [August 21, 2020, 7:17pm UTC](https://discuss.elastic.co/t/using-output-kafka-codec-avro-with-kafkaavroserializer-schema-registry-url-issue/245953/1 "2020-08-21T19:17:06Z")

</div>

Hi guys,

Our purpose is to post messages to event bus Kafka using Avro.

We added all required jars libraries in `LS_HOME/vendor/jruby/lib/`  
And Logstash does recognize KafkaAvroSerializer and all other required classes fine.

The Issue is that logstash needs to specify the SCHEMA\_REGISTRY\_URL

```auto
[logstash.outputs.kafka][main] Unable to create Kafka producer from given configuration {:kafka_error_message=>org.apache.kafka.common.KafkaException: Failed to construct kafka producer, :cause=>io.confluent.common.config.ConfigException: Missing required configuration "schema.registry.url" which has no default value.}

```

But this property could not be passed to the kafka output plugin

```auto
    kafka {
            codec => avro {
                         schema_uri => "path/to/Schema.avsc"
                         tag_on_failure => true
                     }
            
            retries => 10
            bootstrap_servers => "xxx:9092"
            topic_id => "xxx"
            acks => "all"
            message_key => "xxx"

            key_serializer=> "io.confluent.kafka.serializers.KafkaAvroSerializer"
            value_serializer => "io.confluent.kafka.serializers.KafkaAvroSerializer"
        }

```

Here is how our "vendor/lib" looks like

```auto
avro-1.10.0.jar
common-config-5.5.1.jar
jni/
jruby.jar
kafka-avro-serializer-5.3.0.jar
kafka-clients-2.5.0.jar
kafka-schema-registry-client-5.3.0.jar
kafka-streams-avro-serde-5.5.1.jar
ruby/

```

Any one could help with this issue please ?

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [August 21, 2020, 9:19pm UTC](https://discuss.elastic.co/t/using-output-kafka-codec-avro-with-kafkaavroserializer-schema-registry-url-issue/245953/2 "2020-08-21T21:19:54Z")

</div>

Take a look at [this](https://discuss.elastic.co/t/logstash-kafka-avro-integration-failing/192499) thread.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 18, 2020, 9:19pm UTC](https://discuss.elastic.co/t/using-output-kafka-codec-avro-with-kafkaavroserializer-schema-registry-url-issue/245953/3 "2020-09-18T21:19:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
