今天用CDH 5.10.2版本添加Hive组件的时候,持续报错,不得不说这个版本真能锻炼人…
首先报的是驱动类找不到的异常,将mysql的jdbc包放到/usr/share/java目录下,注意去掉版本名称。
错误1:
错误1截图:

错误2截图:

错误1.
Caused by: javax.jdo.JDODataStoreException: Required table missing : "`VERSION`" in Catalog "" Schema "". DataNucleus requires this table to perform its persistence operations. Either your MetaData is incorrect, or you need to enable "datanucleus.autoCreateTables"
NestedThrowables:
org.datanucleus.store.rdbms.exceptions.MissingTableException: Required table missing : "`VERSION`" in Catalog "" Schema "". DataNucleus requires this table to perform its persistence operations. Either your MetaData is incorrect, or you need to enable "datanucleus.autoCreateTables"
at org.datanucleus.api.jdo.Nucleus

在安装CDH5.10.2版本的Hive组件过程中遇到了驱动类找不到、元数据表缺失以及MySQL最大索引长度限制等问题。针对这些问题,解决方案包括:修改datanucleus配置以允许自动创建表和列,禁用Hive元数据版本验证,以及调整MySQL数据库字符集以避免索引长度超出限制。
最低0.47元/天 解锁文章
615

被折叠的 条评论
为什么被折叠?



