报错:
执行insert overwrite,长时间卡住,为将任务提交到yarn上,等待很长时间后,会报如下信息:
Error in acquiring locks: Locks on the underlying objects cannot be acquired. retry after some time): Error while processing statement: FAILED: Error in acquiring locks:Locks on the underlying objects cannot be acquired. retry after some time error_msg:
解决办法:
查看是在向那个分区插入数据时卡住并报错,会显示锁的状态,直接释放锁即可,如果释放后还出现这个问题, 可能是因为其他的分区也存在锁,或者当前使用的分区,之前的锁没有释放,只是不显示,需要到zk中查看(找到namaspace,查看对应db下的表),查到后直接释放即可
show locks table partition(pt='20201105')
unlock table table partition(pt='20201105')
版权声明:本文为a53878617原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。