gpt4 book ai didi

hive - java.lang.RuntimeException:无法实例化org.apache.hadoop.hive.metastore.HiveMetaStoreClient

转载 作者:行者123 更新时间:2023-12-03 08:36:24 25 4
gpt4 key购买 nike

我已经按照链接http://www.youtube.com/watch?v=Dqo1ahdBK_A上的说明配置了Hive,但是在Hive中创建表时遇到以下错误。我正在使用hadoop-1.2.1和hive-0.12.0。

hive> create table employee(emp_id int,name string,salary double);
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient

最佳答案

看起来您的metastore有问题。如果您正在使用默认的配置单元metastore嵌入式derby。如果出现异常退出,将存在锁定文件。如果您删除该锁定文件,此问题将得到解决

rm   metastore_db/*.lck

关于hive - java.lang.RuntimeException:无法实例化org.apache.hadoop.hive.metastore.HiveMetaStoreClient,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22711364/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com