1

我使用 MySQL 5.7 作为 Hive metastore 。像往常一样,我的连接字符串如下

<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true

但我收到以下错误。

Thu Nov 16 20:12:28 IST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

org.apache.thrift.transport.TTransportException:无法在地址 0.0.0.0/0.0.0.0:9083 上创建 ServerSocket。

. 那么谁能告诉我如何在mysql连接字符串中传递SSl参数?或者我可以解决的任何其他方式?

4

1 回答 1

0

只需添加useSSL=false到连接字符串:

<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true&amp;useSSL=false</value>
于 2021-12-07T11:52:53.460 回答