question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSLHandshakeException: While using ABRiS latest version

See original GitHub issue

We have an application consuming data from Kafka (in avro format) using Spark streaming, but Kafka is enabled with 2 way SSL.

our Spark code has been working fine ABRiS (za.co.absa:abris_2.11:4.2.0) older version for longer time, we had to upgrade to Scala 2.12 and tried with library za.co.absa:abris_2.12:4.2.0 and it started throwing SSL error while deserializing.

Here is the SSL settings which is working with 2.11 version of scala

Map (
  "schema.registry.url" -> schemaRegistry,
  "schema.registry.topic" -> topic,
  "schema.registry.ssl.truststore.location" -> ("ssl.truststore.location"),
  "schema.registry.ssl.truststore.password" -> ("ssl.truststore.password"),
  "schema.registry.ssl.keystore.location" ->("ssl.keystore.location"),
  "schema.registry.ssl.keystore.password" -> ("ssl.keystore.password"),
  "schema.registry.ssl.key.password" -> ("ssl.key.password"),
  "value.schema.naming.strategy" -> "topic.name",
  "value.schema.id" -> "latest",
  "value.schema.version" -> "latest"
)

but same thing is throwing below error with 2.12 version

SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: SunCertPathBuilderException: unable to find valid certification path to requested target

Can you please throw some inputs on this

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
anumula-srikanthcommented, Jul 29, 2021

Awesome, it worked, Thanks for the response. is there any advantage running with latest version of ABRiS library (4.2 over 3.1)

0reactions
cerveadacommented, Jul 30, 2021

Yes, there were some bug fixes and performance improvements.

You can see the full list of changes here: https://github.com/AbsaOSS/ABRiS/releases

Read more comments on GitHub >

github_iconTop Results From Across the Web

Untitled
Sag es laut karaoke version, Internet enabled blu ray dvd player, ... Fast track ski news, Good players to mass bid on, Print...
Read more >
Auto-resolve schema by Confluent magic bytes using ABRiS ...
Is there a way to automatically resolve the schema by the leading magic byte for each message, which contains the schema id for...
Read more >
Schema Registry Security Overview - Confluent Documentation
Schema Registry consumes from the _schemas log in a background thread, ... If you want to enable use.latest.version , you must disable auto...
Read more >
ABRiS - githubmemory
Issue with from_avro in Abris 6.1.1 · Getting zero byte files using abris · Nested avro schema registry not supported · Apicurio Registry...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found