报错如下:

Unable to acquire IMPLICIT, EXCLUSIVE lock dms@pc_user_msg@month=201611 after 100 attempts.

hive 锁表问题

显示dms库下的pc_user_msg表分区month=201611被锁住了,

查看是否被锁:

show locks pc_user_msg;

列出相关查看锁表语句:

  • SHOW LOCKS <TABLE_NAME>;
  • SHOW LOCKS <TABLE_NAME> extended;
  • SHOW LOCKS <TABLE_NAME> PARTITION (<PARTITION_DESC>);
  • SHOW LOCKS <TABLE_NAME> PARTITION (<PARTITION_DESC>) extended

解决办法:

关闭锁机制:

set hive.support.concurrency=false; 默认为true

参考文章:

http://blog.csdn.net/techchan/article/details/50426743

相关文章:

  • 2021-10-15
  • 2022-12-23
  • 2021-12-05
  • 2021-11-27
  • 2021-12-10
  • 2022-01-16
  • 2021-09-02
  • 2021-06-18
猜你喜欢
  • 2021-05-05
  • 2022-01-01
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-10-22
相关资源
相似解决方案