Enable SSL debug and  analyze the log (not an easy task, but better than
getting stuck)
https://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/ReadDebug.html

Java version used? 8? 11? Could you provide all the stacktrace?

El vie, 4 oct 2024, 17:34, Stefano Bovina <bov...@gmail.com> escribió:

> Hi,
> we are trying to configure an integration between trino, spark and hive
> metastore (HMS) in a secure way.
>
> Hive metastore has already been configured in order to use kerberos and
> TLS.
> Trino has already been configured in order to connect to HMS using TLS and
> kerberos.
>
> Trying to do the same for spark (connect it to HMS using TLS and kerberos)
> we faced a problem with TLS connection: if we configure spark using
> kerberos and plain connection to HMS (reconfiguring HMS too) it works, but
> if we enable TLS on both, spark is not able to connect.
>
> The error on HMS is the following: "Caused by: javax.net.ssl.SSLException:
> Unsupported or unrecognized SSL message" and indeed connections initiated
> by spark are alway plain.
>
> spark: 3.5.2_scala2.12
> hadoop: 3.3.6
> iceberg: 1.6.0
> hive: 4.0.0
>
> spark conf:
> https://gist.github.com/bovy89/83cbe3b9cd7a318fa9fd35355d5801fc
>
> Any ideas?
>

Reply via email to