Hive 查看partition 以及msck 修复分区

# check table 的 partition

hive> show partitions table_name ;

如果是外部表 ,不小心把表给删除了 ,可以适用下命令重新关联表和数据

[MSCK REPAIR TABLE] 全量修复分区
hive> msck repair table table_name;

原文地址:https://www.cnblogs.com/TendToBigData/p/10501178.html