問題一 (Hive元數據庫編碼異常)
問題描述:
解決方案:
##設置hive數據庫編碼爲latin1
mysql > alter database hive character set latin1;
問題二 (JDBC版本異常)
問題描述:
解決方案:
JDBC Driver版本過低引起的異常,使用高版本的JDBC驅動
問題三 (Mysql數據庫異常)
問題描述:
Starting Hive Metastore Server javax.jdo.JDOFatalDataStoreException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://192.168.52.130:3306/hive_remote?createDatabaseIfNotExist=true, username = root. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: —— java.sql.SQLException: null, message from server: “Host ‘192.168.52.128’ is not allowed to connect to this MySQL server”
解決方案:
①、將root用戶添加到mysql組
[root@hadoop07 ~]# useradd -g root mysql
②、修改root用戶的密碼