今天因為mysql服務不知道怎么崩了重新下載mysql和配置hive,然后發現更換mysql作為hive元數據庫時一直報錯
執行 schematool -dbType mysql -initSchema 進行數據庫初始化也報錯
Metastore connection URL: jdbc:mysql://finnchan:3306/metastore?createDatabaseIfNotExist=true&useSSL=false&serverTimezone=GMT
Metastore Connection Driver : com.mysql.jdbc.Driver
Metastore connection User: root
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
*** schemaTool failed ***
找了好久原因才發現是hive/lib里的驅動版本太低了,和mysql版本不匹配,換成mysql-connector-java-8.0.18.jar 就ok了