我想在Hive中执行一个select查询,但是花了这么长时间,我决定检查我的表锁状态。显然,表已被一些正在进行的查询锁定。
在这种情况下,我知道SQL有(Nolock)和(nolock),我可以在表上应用它。蜂箱里有类似或类似的东西吗?
Sample sql query : select * from table a with (nolock)
Equivalent query in hive is what I am looking for ?发布于 2021-09-16 14:59:43
可以使用hive.support.concurrency属性控制并发锁定。请参阅:https://cwiki.apache.org/confluence/display/hive/configuration+properties#ConfigurationProperties-hive.support.concurrency
在您的示例中,只需在执行查询之前将其设置为false (true是默认的):
set hive.support.concurrency=false可以通过查看以下行的hive_beeline日志来确认是否关闭了并发性:
INFO : Concurrency mode is disabled, not creating a lock managerhttps://stackoverflow.com/questions/62323233
复制相似问题