Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Transactions 配置单元-获取锁时出错_Transactions_Hive_Locking - Fatal编程技术网

Transactions 配置单元-获取锁时出错

Transactions 配置单元-获取锁时出错,transactions,hive,locking,Transactions,Hive,Locking,配置单元正在中止执行和日志记录: No rows affected (0.005 seconds) No rows affected (0.059 seconds) Error: Error while processing statement: FAILED: Error in acquiring locks: Locks on the underlying objects cannot be acquired. retry after some time (state=42000,code=

配置单元正在中止执行和日志记录:

No rows affected (0.005 seconds)
No rows affected (0.059 seconds)
Error: Error while processing statement: FAILED: Error in acquiring locks: Locks on the underlying objects cannot be acquired. retry after some time (state=42000,code=10)

Closing: 0: jdbc:hive2://
有人能告诉我如何解决这个问题吗

在霍顿发行版中,配置单元版本为0.14 hive.support.concurrency=true;hive.txn.manager=DummyTxnManager


设置此属性并运行它

设置hive.support.concurrency=false

默认情况下,这是真的


在某些情况下,查询可能导致死锁。我建议仔细查看您的查询,以确定任何死锁模式

这可能会有所帮助

我不建议禁用并发,而是建议使用自定义

蜂巢、锁、数量

hive.unlock.numretries

hive.lock.sleep.between.retries


运行
显示锁然后尝试了解锁定目标表的是谁或什么。可能是来自Windows的崩溃JDBC客户端——出于某种原因,Windows上的JDBC即使在客户端已死亡(Oracle的已知问题等)后仍保持活动状态,您必须关闭Windows会话以释放连接和锁。或者,metastore DB可能正在运行Slooow——请查看metastore服务日志。查看“超时”属性。默认值可能已更改为0.13或0.14(我现在隐约记得sthg…)