The server time zone value 'EDT' is unrecognized or represents more than one time zone


解決:

1)使用 server mysql start命令啟動mysql

2)在mysql中執行show variables like '%time_zone%';

(3)輸入select nows();

4)在終端執行date命令

此時發現終端顯示的時間和MySql中顯示的時間不一致,這就是問題所在。

5)在mysql中執行 set time_zone=SYSTEM;

6)再次在mysql中執行select now();

6)執行 set global time_zone='+8:00';

7)執行 flush privileges;

(8)再次執行hive命令,問題解決。

 


免責聲明!

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



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