解决办法 set hive.groupby.skewindata=false; 即可查询 hive>select count(distinct id, name) from test; 默认是false 由于大部分时候会设置成true来减少数据倾斜现象.