简体   繁体   English

使用MySQL配置Hive Metastore的JDBC URL

[英]Hive metastore's JDBC URL setup with mysql

Below is the URL I am using in hive-site.xml to connect to mysql. 以下是我在hive-site.xml中用于连接mysql的URL。

jdbc:mysql://localhost:3306/metastore_db?autoReconnect=true&verifyServerCertificate=false;useSSL=true

Somehow, it errors out with the following error. 不知何故,它出现以下错误。

The connection property 'verifyServerCertificate' only accepts values of the form: 'true', 'false', 'yes' or 'no'. 连接属性“ verifyServerCertificate”仅接受以下格式的值:“ true”,“ false”,“ yes”或“ no”。 The value 'false;useSSL=true' is not in this set. 值'false; useSSL = true'不在此集合中。

This was the same URL with which I ran the schematool and it ran all good. 这是我运行schematool所用的URL,并且运行良好。

Let me know if there are any suggestions for URL. 让我知道是否对URL有任何建议。

Thanks 谢谢

Ah, I just figured out the solution. 啊,我刚想出解决方案。

We need to use 我们需要使用

> & amp ; ( no spaces included ) in the JDBC URL

Below is what worked for me: 以下是对我有用的东西:

jdbc:mysql://localhost:3306/metastore_db?autoReconnect=true&
amp;verifyServerCertificate=false& amp;useSSL=true

( remember to remove spaces after &, I had to add space so that it gets displayed on this HTML page ) (切记在&之后删除空格,我必须添加空格,以便它可以在此HTML页上显示)

Hope this helps. 希望这可以帮助。

Regards 问候

Abhay Dandekar 阿比·丹德卡(Abhay Dandekar)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM