Caused by: java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://192.168.87.129:3306/hive, username = root. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------
提示這個錯誤要根據自己的實際情況出發檢視
我這裡的原因是因為 copy出來的 hive-site.xml 中配置資料庫的值沒有替換掉,而是直接覆寫導緻的原因。
參考這個配置 可以解決 https://blog.csdn.net/xiweihao/article/details/104105481