Hive启动报错

来源:互联网 发布:成都百度关键词优化 编辑:程序博客网 时间:2024/05/16 02:49

问题: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即可;

0 0