1.hive锁表命令

  1. hive> lock table t1 exclusive;锁表后不能对表进行操作

2.hive表解锁:

  1. hive> unlock table t1;

3.查看被锁的表

  1.hive> show locks;