在配置单元中出现错误 [英] getting error in hive
问题描述
当我连接到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屋!