Spark连接Hive 创建表提示"Specified key was too long; max key length is 767 bytes"解决办法

版权声明:https://blog.csdn.net/lvtula https://blog.csdn.net/lvtula/article/details/82885074

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 --------------------- 本文来自 keljony 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/keljony/article/details/43371995?utm_source=copy

解决办法:

mysql > alter database hive character set latin1;

再在Hive里创建表已经ok了

猜你喜欢

转载自blog.csdn.net/lvtula/article/details/82885074
今日推荐