0

我正在尝试通过胶水作业访问在 on-prmisis 上运行的配置单元

由于 hive 使用需要身份验证的 jdbc 连接,我在作业中附加了证书(certificate.pem)(使用连接)并尝试使用以下代码加载表:

胶水版本:2火花:2.4

jdbcDF = spark.read \
    .format("jdbc") \
    .option("url", "jdbc:hive2://bigdatamr:10000/mydb;ssl=true;transportMode=http;httpPath=gateway/default/hive;trustStorePassword=selfSigned") \
    .option("dbtable", "mydb") \
    .option("user", "myusername") \
    .option("password", "xxxxxxx") \
    .load()

但工作返回以下错误:

javax.net.ssl.sslhandshakeexception pkix path building failed sun.security.provider.certpath
unable to find valid certification path to requested target

如何解决这个问题?

4

0 回答 0