hive中show table Specified key was too long

當在hive中show table 時若是報如下錯時

   FAILED: Error in metadata: javax.jdo.JDODataStoreException: Error(s) were found while auto-creating/validating the datastore for classes. The errors are printed in the log, and are attached to this exception.
NestedThrowables:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask java

(略去 不少java 提示) mysql

 

是到mysql中的hive數據庫裏執行 alter database hive character set latin1;改變hive元數據庫的字符集,問題就能夠解決! sql

相關文章
相關標籤/搜索