HIVE啓動失敗錯誤彙總

###1.hiveserver2啓動後,beeline不能鏈接的涉及的問題: 緣由:權限問題 解決:mysql

/user/hive/warehouse
/tmp

/history (若是配置了jobserver 那麼/history也須要調整) 這三個目錄,hive在運行時要讀取寫入目錄裏的內容,因此把權限放開,設置權限:sql

hadoop fs -chmod -R 777 /tmp
hadoop fs -chmod -R 777 /user/hive/warehouse

###2.beeline 連接拒絕報錯信息 緣由:官方的一個bug 解決:數據庫

hive.server2.long.polling.timeout
hive.server2.thrift.bind.host //注意把host改爲本身的host

###3.字符集問題、亂碼的、顯示字符長度問題的 緣由:字符集的問題,亂碼問題 解決:hive-site.xml中配置的mysql數據庫中去服務器

alter database hive character set latin1;

###4.message:For direct MetaStore DB connections 這個是因爲個人mysql再也不本地(默認使用本地數據庫),這裏須要配置遠端元數據服務器 hive.metastore.urisoop

thrift://lza01:9083

Thrift URI for the remote metastore. Used by metastore client to connect to rem ote metastore. 而後在hive服務端啓動元數據存儲服務 hive –service metastore ###5. An exception was thrown while adding/validating class(es) : Specified key was too long; max key length is 767 bytes 修改mysql的字符集code

alter database hive character set latain1;
相關文章
相關標籤/搜索