簡體   English   中英

如何使用 MySql 5.7 作為 hive Metastore,因為它需要 SSL 參數?

[英]how to use MySql 5.7 as hive metastore as it need SSL parameter?

我使用 MySQL 5.7 作為 Hive 元存儲。 像往常一樣,我的連接字符串如下

<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 參數? 或者有什么其他方法可以解決?

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

<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true&amp;useSSL=false</value>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM