mysql 提示ssl问题

问题信息如下:

rements 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.

上诉问题是在使用hive链接mysql报出来的问题,解决办法在上述的信息中也提供了,

修改hive的配置文件hive-site.xml

jdbc:mysql://master:3306/hivedb?createDatabaseIfNotExist=true

修改成如下:
jdbc:mysql://master:3306/hivedb?useSSL=falsecreateDatabaseIfNotExist=true

 

posted @ 2019-09-10 17:45  北漂-boy  阅读(999)  评论(0编辑  收藏  举报