ItGo.me - 专注IT技术分享

首页 > Exception > Hive Specified key was too long; max key length is 767 bytes

Hive Specified key was too long; max key length is 767 bytes

时间:2015-04-26来源:网友分享 点击:
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask.
MetaException(message:javax.jdo.JDODataStoreException: An exception was thrown while adding/validating class(es) : Specified key was too long; max key length is 767 bytes
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes
    at sun.reflect.GeneratedConstructorAccessor30.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at com.mysql.jdbc.Util.getInstance(Util.java:386)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)

数据库字符集问题。解决方法:修改MySQL中Hive元数据库MetaStore的字符集便可。
alter database hive_metadata character set latin1;

java.io.IOException: Segment already parsed

ERROR security.UserGroupInformation: PriviledgedActionException as:hadoop cause:java.io.IOException: Segment already parsed! Exception in thread "main" java.io.IOException: Segment already parsed!...

Hive Specified key was too long; max key length is 767 bytes

An exception was thrown while adding/validating class(es) : Specified key was too long; max key length is 767 bytes...

java.lang.OutOfMemoryError: unable to create new native thread解决

Error occurred during initialization of VM java.lang.OutOfMemoryError: unable to create new native thread...

An exception was thrown while adding/validating class(es) : Specified key was too long; max key length is 767 bytes
------分隔线----------------------------