簡體   English   中英

配置單元0.14更新和刪除查詢配置錯誤

[英]hive 0.14 update and delete queries configuration error

在apache hive 0.14我們可以通過支持ACID配置來更新和刪除查詢:

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

但是當我使用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>

請幫助我修復錯誤。

讓我們將其添加到hive-site.xml中:

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

您的數據庫服務器或配置單元metastore最有可能未運行。 嘗試這個。

mysqld    # or pg_ctl start -l logfile   or whatever your db start command

然后確保Metastore正在運行

nohup hive --service metastore &

OP中的更新 “沒有足夠的可用空間”

看一眼

/var/lib/mysql  

看看它是否被100%利用了。 參考: https : //askubuntu.com/questions/198639/cannot-reinstall-mysql-in-11-10-error-theres-not-enough-space-in-var-lib-my

線程所有者是正確的。 設置hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DbTxnManager

導致元存儲連接錯誤(在我的情況下,metasdtore是SAP ASE並具有多個數據庫)

返回並設置hive.txn.manager為默認hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DummyTxnManager

並再次回收了metastore和hive服務器,並且一切正常!

聽起來並發不起作用,或者需要做一些額外的工作!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM