Open mac-macoy opened 1 year ago
Thanks for the report. Seems like you have a workaround as well.
I'm not sure if this is something we would want to add into the upstream or not. @kunaldeepsingh do you have intuition on that?
@jsleight
Please at least add a hint in the error when this message is encountered
java.sql.SQLException: The hostname xxxxxxx could not be verified by hostnameverifier RedshiftjdbcHostnameVerifier.
We connect from Spark to Redshift across VPCs using VPC Endpoints. When trying to connect with (in Databricks):
we get the error:
When we use the JDBC connector (
.format("jdbc")
) using the same URL, it connects and returns results.We found that if we add
;sslmode=verify-ca
to the URL, the Redshift connector works: