在配置单元中出现错误 [英] getting error in hive

查看:106
本文介绍了在配置单元中出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当我连接到ireport时,如果在蜂巢shell中显示表格,这个错误即将到来: metadata:java.lang.RuntimeException:无法实例化
org.apache.hadoop.hive.metastore.HiveMetaStoreClient FAILED:执行
错误,从org.apache.hadoop.hive.ql.exec返回代码1 .DDLTask



解决方案

您是否复制了包含 JDBC驱动程序的jar 为你的元数据db到Hive的lib目录中?



例如,如果您使用 MySQL 来存放元数据库,则需要复制

mysql-connector-java-5.1.22-bin.jar $ HIVE_HOME / lib



这为我修正了同样的错误。

When i am connected to the ireport, then if a say show tables in hive shell,this error is coming:

Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

解决方案

Have you copied the jar containing the JDBC driver for your metadata db into Hive's lib dir?

For instance, if you're using MySQL to hold your metadata db, you wll need to copy

mysql-connector-java-5.1.22-bin.jar into $HIVE_HOME/lib.

This fixed that same error for me.

这篇关于在配置单元中出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆