简体   繁体   English

如何使用 MySql 5.7 作为 hive Metastore,因为它需要 SSL 参数?

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

I am using MySQL 5.7 as Hive metastore .我使用 MySQL 5.7 作为 Hive 元存储。 As ususal , my connection string is as follows像往常一样,我的连接字符串如下

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

but i am getting following error .但我收到以下错误。

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: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083. org.apache.thrift.transport.TTransportException:无法在地址 0.0.0.0/0.0.0.0:9083 上创建 ServerSocket。

. . So can anybody tell me how to pass SSl parameter in mysql connection string??那么谁能告诉我如何在 mysql 连接字符串中传递 SSl 参数? Or any other way i can solve it ?或者有什么其他方法可以解决?

Just add useSSL=false to connection string:只需将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