欢迎投稿

今日深度:

Hive启动报错,

Hive启动报错,


问题:Exception in thread “main” java.lang.RuntimeException: Hive metastore database is not initialized. Please use schematool (e.g. ./schematool -initSchema -dbType …) to create the schema.

原因:由于没有初始化元数据库; 
解决方法: 
命令行输入:./schematool -initSchema -dbType derby 
输入完这句之后可能会报如下错: 
Error: FUNCTION ‘NUCLEUS_ASCII’ already exists. (state=X0Y68,code=30000) 
原因:这可能是因为你的metastore_db文件夹已经存在; 
解决办法:将当前文件夹下的metastor_db文件夹删除,重新输入指令:./schematool -initSchema -dbType derby即可;

www.htsjk.Com true http://www.htsjk.com/hive/35031.html NewsArticle Hive启动报错, 问题:Exception in thread “main” java.lang.RuntimeException: Hive metastore database is not initialized. Please use schematool (e.g. ./schematool -initSchema -dbType …) to create the schema. 原因:由于没有初...
相关文章
    暂无相关文章
评论暂时关闭