Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-11851

ConfluentSchemaRegistryProvider fails when authentication is required

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 2.27.0
    • 2.31.0
    • io-java-kafka

    Description

      When configuring KafkaIO.reader with ConfluentSchemaRegistryProvider as value deserializer with `basic.auth.credentials.source=AUTH_INO` and `basic.auth.user.info=user:password` properties, it fails to start the pipepline

      [error] java.lang.RuntimeException: Unable to get latest schema metadata for subject: identity_users_v2-value
      [error]   at org.apache.beam.sdk.io.kafka.ConfluentSchemaRegistryDeserializerProvider.getSchemaMetadata(ConfluentSchemaRegistryDeserializerProvider.java:119)
      [error]   at org.apache.beam.sdk.io.kafka.ConfluentSchemaRegistryDeserializerProvider.getAvroSchema(ConfluentSchemaRegistryDeserializerProvider.java:110)
      [error]   at org.apache.beam.sdk.io.kafka.ConfluentSchemaRegistryDeserializerProvider.getCoder(ConfluentSchemaRegistryDeserializerProvider.java:106)
      [error]   at org.apache.beam.sdk.io.kafka.KafkaIO$Read.getValueCoder(KafkaIO.java:1147)
      [error]   at org.apache.beam.sdk.io.kafka.KafkaIO$Read.expand(KafkaIO.java:1052)
      [error]   at org.apache.beam.sdk.io.kafka.KafkaIO$Read.expand(KafkaIO.java:481)
      [error]   at org.apache.beam.sdk.Pipeline.applyInternal(Pipeline.java:547)
      [error]   at org.apache.beam.sdk.Pipeline.applyTransform(Pipeline.java:498)
      [error]   at org.apache.beam.sdk.values.PBegin.apply(PBegin.java:56)
      [error]   at org.apache.beam.sdk.Pipeline.apply(Pipeline.java:191) 

       

      I suspect that it because it reconfigured KafkaAvroDeserializer only in getDeserializer, but doesn't do so in getCoder.

      Attachments

        Issue Links

          Activity

            People

              tunderhill Tom Underhill
              yamlcoder Maxim Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m