Hive提示警告SSL

我们启动hive之后 在写语句的时候时候报:

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.
 

我们需要在hive-size.xml javax.jdo.option.ConnectionURL中添加&useSSL=false 就OK了  重启再试下吧~

<property>
        <name>javax.jdo.option.ConnectionURL</name>
        <value>jdbc:mysql://localhost:3306/hive_metadata?createDatabaseIfNotExist=true&amp;characterEncoding=utf8&amp;useSSL=false</value>
        <description>元数据存储的数据库的url</description>
    </property>

猜你喜欢

转载自blog.csdn.net/qq_32941881/article/details/81558645