hive过程中遇到mysql问题的解决

我刚搭好的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.
 

看了好多帖子,需要修改jdbc的连接配置;

于是修改hive-site.xml;

sudo vi hive-site.xml

dbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true添加&useSSL=false

修改如图

hive过程中遇到mysql问题的解决_第1张图片

修改前:

hive过程中遇到mysql问题的解决_第2张图片

修改后效果:

hive过程中遇到mysql问题的解决_第3张图片

 

 


我的hive-site.xml文件




  
    javax.jdo.option.ConnectionURL
    jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true&useSSL=false
    JDBC connect string for a JDBC metastore
  
  
    javax.jdo.option.ConnectionDriverName
    com.mysql.jdbc.Driver
    Driver class name for a JDBC metastore
  
  
    javax.jdo.option.ConnectionUserName
    hive
    username to use against metastore database
  
  
    javax.jdo.option.ConnectionPassword
    hive
    password to use against metastore database
  

 

参考博客:

https://blog.csdn.net/qq_37392589/article/details/81215953

你可能感兴趣的:(安装及配置,Linux,大数据)