如何使用MySQL5.7作为hive元存储,因为它需要ssl参数?

ltqd579y  于 2021-06-01  发布在  Hadoop
关注(0)|答案(0)|浏览(197)

我使用mysql 5.7作为配置单元元存储。通常,我的连接字符串如下

<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.ttTransportException:无法在地址0.0.0.0/0.0.0:9083上创建serversocket。
. 有人能告诉我如何在mysql连接字符串中传递ssl参数吗??或者其他我能解决的方法?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题