标签:
Hive + zookeeper 可以支持锁功能
<property>
<name>hive.zookeeper.quorum</name>
<value>zk1,zk2,zk3</value>
</property>
<property>
<name>hive.support.concurrency</name>
<value>true</value>
</property>
hive> lock table t1 exclusive;
hive> SELECT COUNT(*) FROM people;
conflicting lock present for default@people mode SHARED
FAILED: Error in acquiring locks: locks on the underlying objects
cannot be acquired. retry after some time
hive> unlock table t1;
标签:
原文地址:http://www.cnblogs.com/lishouguang/p/4560829.html