Hive中頻繁報警的問題


在使用Hive的過程中,是不是會在shell中報一堆警告,雖然說不影響正常使用,但是看着很煩人,而且指不定會影響數據的准確性和運行的穩定性。

警告的內容如下:

Tue Aug 09 10:29:43 CST 2016 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使用MySql作為metadata的存儲,而MySql為5.7.12版本,需要在連接串中指定是否采用SSL連接。

所以我們只需修改Hive的 hive-site.xml,在連接串中加入指定SSL為false即可:

  <property>
    <name>javax.jdo.option.ConnectionURL</name>
    <value>jdbc:mysql://ut07:3306/hive?createDatabaseIfNotExist=true&amp;useUnicode=true&amp;characterEncoding=UTF-8&amp;useSSL=false</value>
  </property>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM