首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

hive的Specified key was too long; max key length is 767 bytes有关问题解决

2012-09-28 
hive的Specified key was too long max key length is 767 bytes问题解决当在hive中show table 时如果报

hive的Specified key was too long; max key length is 767 bytes问题解决

当在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 提示)

?

是到mysql中的hive数据库里执行 alter database hive character set latin1;改变hive元数据库的字符集,问题就可以解决!

热点排行