当在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元数据库的字符集,问题就可以解决!

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章:

  • 2022-01-05
  • 2021-06-01
  • 2021-06-15
  • 2021-12-31
  • 2021-11-15
  • 2021-08-15
猜你喜欢
  • 2021-09-20
  • 2021-08-31
  • 2021-08-30
  • 2022-02-19
  • 2022-01-10
相关资源
相似解决方案