Hive创建表时:报错 FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Me

Hive创建表时:报错
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

解决办法,hive元数据库修改字符集:
alter database hivemetastore character set latin1;

再运行建表语句,解决

你可能感兴趣的:(hive)