cloudera manager安裝hive各種坑解決方案

問題一 (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用戶的密碼

發佈了114 篇原創文章 · 獲贊 31 · 訪問量 21萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章