问题描述:
错误信息如下:
org.datanucleus.metadata.InvalidClassMetaDataException: Class "org.apache.hadoop.hive.metastore.model.MDatabase" field "org.apache.hadoop.hive.metastore.model.MDatabase.catalogName" : declared in MetaData, but this field doesnt exist in the class!
Caused by: org.datanucleus.exceptions.NucleusUserException: Identifier principalName is unresolved (not a static field)
}
解决方案:
找了很多资料,都没有解决,其实只是因为我忘记把hive-site.xml导入了
导入hive-site.xml即可
博客内容描述了一个在使用Hive时遇到的元数据错误,由于缺少hive-site.xml文件导致。错误信息涉及到DataNucleus和Hive的MDatabase类。解决方案是简单地将hive-site.xml配置文件导入到项目中,这表明该文件对于正确配置Hive连接至关重要。

4105

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



