我连接了hive,当我尝试使用下面的命令显示所有数据库时,我收到以下错误:
techgene@slaveone:~/apps/hive-0.12.0$ hive
Logging initialized using configuration in jar:file:/home/techgene/apps/hive-0.12.0/lib/hive-common-0.12.0.jar!/hive-log4j.properties
hive> show databases;
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
请为此提供解决方案吗?
答案 0 :(得分:0)
当hive CLI会话未正确结束时,通常会发生此问题。在这种情况下,请按如下方式终止未正确关闭的配置单元CLI会话。在此之后,hive CLI新推出。
ramisetty@aspire:~$ jps
3710 SecondaryNameNode
4103 RunJar -------------------------> hive CLI instance.
4019 TaskTracker
3467 DataNode
3242 NameNode
4366 Jps
3788 JobTracker
ramisetty@aspire:~$ kill -9 4103
ramisetty@aspire:~$
仍然存在问题意味着请遵循可用的解决方案@ FAILED: Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient