1. 程式人生 > >hive出現字符集錯誤,在此記錄!

hive出現字符集錯誤,在此記錄!

出現錯誤

:Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB connections, we don't support retries at the client level.) 

在伺服器上裝好mysql並且,已經執行過hive,在伺服器的hive資料庫裡已經存在元資料

不過內容是空的

在建表的時候出現了以下錯誤

Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB connections, we don't support retries at the client level.)

之所以出現這種錯誤就是編碼問題!

在資料庫執行

ALTER DATABASE hive CHARACTER SET latin1