配置单元0.14更新和删除查询配置错误 [英] hive 0.14 update and delete queries configuration error

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

问题描述

在apache hive 0.14 中,我们可以通过支持 ACID 配置来更新和删除查询:

  hive.configuration:
hive.support.concurrency - true
hive.enforce.bucketing - true
hive。 exec.dynamic.partition.mode - 非限制
hive.txn.manager - org.apache.hadoop.hive.ql.lockmgr.DbTxnManager
hive.compactor.initiator.on - true(仅限一个实例的Thrift metastore服务)
hive.compactor.worker.threads-1

但是我当我使用hiveQL show databases

  as @ ubuntu:〜$ hive 
使用jar中的配置初始化日志记录:file:/home/as/hive/lib/hive-common-0.14.0.jar!/hive-log4j.properties< br>
SLF4J:类路径包含多个SLF4J绑定。< br>
SLF4J:在[jar:file:/home/as/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]中找到绑定<峰; br>
SLF4J:在[jar:file:/home/as/hive/lib/hive-jdbc-0.14.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]中找到绑定< br>
SLF4J:请参阅http://www.slf4j.org/codes.html#multiple_bindings以获取解释。< br>
SLF4J:实际绑定的类型为[org.slf4j.impl.Log4jLoggerFactory]< br>
hive>显示数据库;< br>
FAILED:LockException [错误10280]:与Metastore进行通信时发生错误< br>
hive>出口;
< br>

请帮我修正错误。

解决方案

在hive-site.xml中添加它:

< property> <名称>&hive.in.test LT; /名称> <值GT;真< /值GT; < / property>


In apache hive 0.14 we can update and delete queries by supporting ACID configuration:

hive.configuration:
hive.support.concurrency – true
hive.enforce.bucketing – true
hive.exec.dynamic.partition.mode – nonstrict
hive.txn.manager – org.apache.hadoop.hive.ql.lockmgr.DbTxnManager
hive.compactor.initiator.on – true (for exactly one instance of the Thrift metastore service)
hive.compactor.worker.threads-1

But I get the following error when I use hiveQL show databases:

as@ubuntu:~$ hive
Logging initialized using configuration in jar:file:/home/as/hive/lib/hive-common-0.14.0.jar!/hive-log4j.properties<br>
SLF4J: Class path contains multiple SLF4J bindings.<br>
SLF4J: Found binding in [jar:file:/home/as/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]<br>
SLF4J: Found binding in [jar:file:/home/as/hive/lib/hive-jdbc-0.14.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]<br>
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.<br>
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]<br>
hive> show databases;<br>
FAILED: LockException [Error 10280]: Error communicating with the metastore<br>
hive> exit;
<br>

Please help me fix error.

解决方案

let add it in hive-site.xml:

    <property>  
    <name>hive.in.test</name>  
    <value>true</value>  
</property>

这篇关于配置单元0.14更新和删除查询配置错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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