revpoint / logstash-codec-avro_schema_registry

A logstash codec plugin for decoding and encoding Avro records
Other
26 stars 23 forks source link

OpenSSL::SSL::SSLError: Received fatal alert: handshake_failure #22

Open ouwe-knutselaar opened 4 years ago

ouwe-knutselaar commented 4 years ago

L.S.

I get this error:

OpenSSL::SSL::SSLError: Received fatal alert: handshake_failure
    connect_nonblock at org/jruby/ext/openssl/SSLSocket.java:276
  ssl_socket_connect at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/protocol.rb:44
             connect at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:985
            do_start at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:924
               start at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:913
               start at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:609
             request at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/schema_registry-0.1.0/lib/schema_registry/client.rb:101
              schema at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/schema_registry-0.1.0/lib/schema_registry/client.rb:40
          get_schema at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-codec-avro_schema_registry-1.2.0/lib/logstash/codecs/avro_schema_registry.rb:160
              encode at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-codec-avro_schema_registry-1.2.0/lib/logstash/codecs/avro_schema_registry.rb:248
       multi_receive at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-kafka-7.3.2/lib/logstash/outputs/kafka.rb:223
                each at org/jruby/RubyArray.java:1792
       multi_receive at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-kafka-7.3.2/lib/logstash/outputs/kafka.rb:221
       multi_receive at org/logstash/config/ir/compiler/OutputStrategyExt.java:118
       multi_receive at org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:101
        output_batch at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:390
                each at org/jruby/RubyHash.java:1419
        output_batch at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:389
         worker_loop at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:341
       start_workers at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:304

The config is:

kafka {
      codec => avro_schema_registry {
          endpoint => "https://XXXXXX.somewhere"
          subject_name => "subj-name"
          schema_id => 1121
          schema_uri => "https://XXXXXX.somewhere"
          base64_encoded => false
          verify_mode => "verify_none"
      }
      ssl_truststore_location => "/XXXX/XXXXX/xxxx.jks"
      ssl_truststore_password => "xxxxxxx"
      ssl_keystore_location   => "/XXXX/XXXXXs/xxxxx.jks"
      ssl_key_password        => "xxxxxxx"
      ssl_keystore_password   => "xxxxxxx"
      security_protocol       => "SSL"
    bootstrap_servers => "XXXXXX.somewhere:9092"
    topic_id => "scema_name"
    value_serializer => "org.apache.kafka.common.serialization.ByteArraySerializer"
  }

What could cause this handshake failure?